Part Number Hot Search : 
IMD10A IRFB4227 6448BC26 13063 HC406 66M010 MCP21 HC49SD
Product Description
Full Text Search
 

To Download ADAU1401 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  sigmadsp 28-/56-bit audio processor with two adcs and four dacs ADAU1401 rev. 0 information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. specifications subject to change without notice. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective owners. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781.329.4700 www.analog.com fax: 781.461.3113 ?2007 analog devices, inc. all rights reserved. features 28-/56-bit, 50 mips digital audio processor 2 adcs: snr of 100 db, thd + n of ?83 db 4 dacs: snr of 104 db, thd + n of ?90 db complete standalone operation self-boot from serial eeprom auxiliary adc with 4-input mux for analog control gpios for digital controls and outputs fully programmable with sigmastudio graphical tool 28-bit 28-bit multiplier with 56-bit accumulator for full double-precision processing clock oscillator for generating master clock from crystal pll for generating master clock from 64 f s , 256 f s , 384 f s , or 512 f s clocks flexible serial data input/output ports with i 2 s-compatible, left-justified, right-justified, and tdm modes sampling rates of up to 192 khz supported on-chip voltage regulator for compatibility with 3.3 v systems 48-lead, plastic lqfp applications multimedia speaker systems mp3 player speaker docks automotive head units minicomponent stereos digital televisions studio monitors speaker crossovers musical instrument effects processors in-seat sound systems (aircraft/motor coaches) general description the ADAU1401 is a complete single-chip audio system with a 28-/56-bit audio dsp, adcs, dacs, and microcontroller-like control interfaces. signal processing includes equalization, cross- over, bass enhancement, multiband dynamics processing, delay compensation, speaker compensation, and stereo image widening. this processing can be used to compensate for real-world limitations of speakers, amplifiers, and listening environments, providing dramatic improvements in perceived audio quality. its signal processing is comparable to that found in high end studio equipment. most processing is done in full 56-bit, double-precision mode, resulting in very good low level signal performance. the ADAU1401 is a fully programmable dsp. the easy to use sigmastudio? software allows the user to graphically configure a custom signal processing flow using blocks such as biquad filters, dynamics processors, level controls, and gpio interface controls. ADAU1401 programs can be loaded on power-up either from a serial eeprom through its own self-boot mechanism or from an external microcontroller. on power-down, the current state of the parameters can be written back to the eeprom from the ADAU1401 to be recalled the next time the program is run. two - adcs and four - dacs provide a 98.5 db analog input to analog output dynamic. each adc has a thd + n of ?83 db, and each dac has a thd + n of ?90 db. digital input and output ports allow a glueless connection to additional adcs and dacs. the ADAU1401 communicates through an i 2 c? bus or a 4-wire spi port. functional block diagram 06752-001 3 2 33 33 2 2 gpio input/output matrix digital vdd digital ground analog vdd analog ground pll mode pll loop filter crystal 3.3v 28-/56-bit, 50mips audio processor core 40ms delay memory 2-channel analog input 1.8v regulator stereo adc filta/ adc_res reset/ mode select control interface and selfboot 8-ch digital input 8-ch digital output 8-bit aux adc reset self boot digital in or gpio aux adc or gpio digital out or gpio i 2 c/spi and writeback 4 54 4 dac dac 4-channel analog output filtd/cm pll clock oscillator ADAU1401 figure 1.
ADAU1401 rev. 0 | page 2 of 52 table of contents features .............................................................................................. 1 applications....................................................................................... 1 general description ......................................................................... 1 functional block diagram .............................................................. 1 revision history ............................................................................... 2 specifications..................................................................................... 3 analog performance .................................................................... 3 digital input/output.................................................................... 4 power.............................................................................................. 5 temperature range ...................................................................... 5 pll and oscillator........................................................................ 5 regulator........................................................................................ 5 digital timing specifications ..................................................... 6 digital timing diagrams................................................................. 7 absolute maximum ratings............................................................ 9 thermal resistance ...................................................................... 9 esd caution.................................................................................. 9 pin configuration and function descriptions........................... 10 typical performance characteristics ........................................... 13 system block diagram ................................................................... 14 overview.......................................................................................... 15 initialization .................................................................................... 16 power-up sequence ................................................................... 16 control registers setup ............................................................. 16 recommended program/parameter loading procedure ..... 16 power-reduction modes ........................................................... 16 using the oscillator.................................................................... 17 setting master clock/pll mode .............................................. 17 voltage regulator ....................................................................... 18 audio adcs .................................................................................... 19 audio dacs .................................................................................... 20 control ports................................................................................... 21 i 2 c port ........................................................................................ 22 spi port ........................................................................................ 25 self-boot ...................................................................................... 26 signal processing ............................................................................ 28 numeric formats........................................................................ 28 programming .............................................................................. 28 rams and registers....................................................................... 29 address maps.............................................................................. 29 parameter ram.......................................................................... 29 data ram ................................................................................... 29 read/write data formats ......................................................... 29 control register map..................................................................... 31 control register details ................................................................ 33 2048 to 2055 (0x0800 to 0x0807)interface registers......... 33 2056 (0x808)gpio pin setting register.............................. 34 2057 to 2060 (0x809 to 0x80c)auxiliary adc data registers ............................................................................. 35 2064 to 2068 (0x0810 to 0x814)safeload data registers.........36 2069 to 2073 (0x0815 to 0x819) safeload address registers ......36 2074 to 2075 (0x081a to 0x081b)data capture registers......37 2076 (0x081c)dsp core control register ......................... 38 2078 (0x081e)serial output control register ................... 39 2079 (0x081f)serial input control register....................... 40 2080 to 2081 (0x0820 to 0x0821)multipurpose pin configuration registers............................................................. 41 2082 (0x0822)auxiliary adc and power control ............ 42 2084 (0x0824)auxiliary adc enable.................................. 42 2086 (0x0826)oscillator power-down................................ 42 2087 (0x0827)dac setup...................................................... 43 multipurpose pins .......................................................................... 44 auxiliary adc............................................................................ 44 general-purpose input/output pins....................................... 44 serial data input/output ports ................................................ 44 layout recommendations............................................................. 47 parts placement .......................................................................... 47 grounding ................................................................................... 47 typical application schematics.................................................... 48 self-boot mode........................................................................... 48 i 2 c control .................................................................................. 49 spi control.................................................................................. 50 outline dimensions ....................................................................... 51 ordering guide .......................................................................... 51 revision history 7/07revision 0: initial version
ADAU1401 rev. 0 | page 3 of 52 specifications avdd = 3.3 v, dvdd = 1.8 v, pvdd = 3.3 v, iovdd = 3.3 v, master clock input = 12.288 mhz, unless otherwise noted. analog performance specifications are guaranteed at 25c (ambient). table 1. parameter min typ max unit test conditions/comments adc inputs number of channels 2 stereo input resolution 24 bits full-scale input 100 (283) a rms (a p-p) 2 v rms input with 20 k (18 k external + 2 k internal) series resistor signal-to-noise ratio a-weighted 100 db dynamic range ?60 db with respect to full-scale analog input a-weighted 95 100 db total harmonic distortion + noise ?83 db ?3 db with respect to full-scale analog input interchannel gain mismatch 25 250 mdb crosstalk ?82 db analog channel-to-channel crosstalk dc bias 1.4 1.5 1.6 v gain error ?11 +11 % dac outputs number of channels 4 two stereo output channels resolution 24 bits full-scale analog output 0.9 (2.5) v rms (v p-p) signal-to-noise ratio a-weighted 104 db dynamic range ?60 db with re spect to full-scale analog output a-weighted 99 104 db total harmonic distortion + noise ?90 db ?1 db with respect to full-scale analog output crosstalk ?100 db analog channel-to-channel crosstalk interchannel gain mismatch 25 250 mdb gain error ?10 +10 % dc bias 1.4 1.5 1.6 v voltage reference absolute voltage (cm) 1.4 1.5 1.6 v auxiliary adc full-scale analog input 2.8 3.0 3.1 v inl 0.5 lsb dnl 1.0 lsb offset 15 mv input impedance 17.8 30 42 k specifications are guaranteed at 130c (ambient). table 2. parameter min typ max unit test conditions/comments adc inputs number of channels 2 stereo input resolution 24 bits full-scale input 100 (283) a rms (a p-p) 2 v rms input with 20 k (18 k external + 2 k internal) series resistor
ADAU1401 rev. 0 | page 4 of 52 parameter min typ max unit test conditions/comments signal-to-noise ratio a-weighted 100 db dynamic range ?60 db with respect to full-scale analog input a-weighted 92 100 db total harmonic distortion + noise ?83 db ?3 db with respect to full-scale analog input interchannel gain mismatch 25 250 mdb crosstalk ?82 db analog channel-to-channel crosstalk dc bias 1.4 1.5 1.6 v gain error ?11 +11 % dac outputs number of channels 4 two stereo output channels resolution 24 bits full-scale analog output 0.9 (2.5) v rms (v p-p) signal-to-noise ratio a-weighted 104 db dynamic range ?60 db with re spect to full-scale analog output a-weighted 98 104 db total harmonic distortion + noise ?90 db ?1 db with respect to full-scale analog output crosstalk ?100 db analog channel-to-channel crosstalk interchannel gain mismatch 25 250 mdb gain error ?10 +10 % dc bias 1.4 1.5 1.6 v voltage reference absolute voltage (cm) 1.4 1.5 1.6 v auxiliary adc full-scale analog input 2.8 3.0 3.1 v inl 0.5 lsb dnl 1.0 lsb offset 15 mv input impedance 17.8 30 42 k digital input/output table 3. parameter min typ max 1 unit comments input voltage, high (v ih ) 2.0 iovdd v input voltage, low (v il ) 0.8 v input leakage, high (i ih ) 1 a excluding mclki input leakage, low (i il ) 1 a excluding mclki and bidirectional pins bidirectional pin pull-up current, low 150 a mclki input leakage, high (i ih ) 3 a mclki input leakage, low (i il ) 3 a high level output voltage (v oh ), i oh = 2 ma 2.0 v low level output voltage (v ol ), i ol = 2 ma 0.8 v input capacitance 5 pf gpio output drive 2 ma 1 maximum specifications are measur ed across a temperature range of ? 40c to +130c (case), a dvdd range of 1.62 v to 1.98 v, and an av dd range of 2.97 v to 3.63 v.
ADAU1401 rev. 0 | page 5 of 52 power table 4. parameter min typ max 1 unit supply voltage analog voltage 3.3 v digital voltage 1.8 v pll voltage 3.3 v iovdd voltage 3.3 v supply current analog current (avdd and pvdd) 50 85 ma digital current (dvdd) 40 60 ma analog current, reset 35 55 ma digital current, reset 1.5 4.5 ma dissipation operation (avdd, dvdd, pvdd) 2 286.5 mw reset, all supplies 118 mw power supply rejection ratio (psrr) 1 khz, 200 mv p-p signal at avdd 50 db 1 maximum specifications are measur ed across a temperature range of ? 40c to +130c (case), a dvdd range of 1.62 v to 1.98 v, and an av dd range of 2.97 v to 3.63 v. 2 power dissipation does not include iovdd power because the current drawn from this supply is dependent on the loads at the dig ital output pins. temperature range table 5. parameter min typ max unit functionality guaranteed ?40 105 c ambient pll and oscillator table 6. pll and oscillator 1 parameter min typ max unit pll operating range mclk_nom ? 20% mclk_nom + 20% mhz pll lock time 20 ms crystal oscillator transconductance (g m ) 78 mmho 1 maximum specifications are measur ed across a temperature range of ? 40c to +130c (case), a dvdd range of 1.62 v to 1.98 v, and an av dd range of 2.97 v to 3.63 v. regulator table 7. regulator 1 parameter min typ max unit dvdd voltage 1.7 1.8 1.84 v 1 regulator specifications are calc ulated using a zetex semiconductors fzt953 transistor in the circuit.
ADAU1401 rev. 0 | page 6 of 52 digital timing specifications table 8. digital timing 1 limit parameter t min t max unit description master clock t mp 36 244 ns mclki period, 512 f s mode. t mp 48 366 ns mclki period, 384 f s mode. t mp 73 488 ns mclki period, 256 f s mode. t mp 291 1953 ns mclki period, 64 f s mode. serial port t bil 40 ns input_bclk low pulse width. t bih 40 ns input_bclk high pulse width. t lis 10 ns input_lrclk setup. time to input_bclk rising. t lih 10 ns input_lrclk hold. time from input_bclk rising. t sis 10 ns sdata_inx setup. time to input_bclk rising. t sih 10 ns sdata_inx hold. time from input_bclk rising. t los 10 ns output_lrclk setup in slave mode. t loh 10 ns output_lrclk hold in slave mode. t ts 5 ns output_bclk falling to output_lrclk timing skew. t sods 40 ns sdata_outx delay in slave mode. time from output_bclk falling. t sodm 40 ns sdata_outx delay in master mode. time from output_bclk falling. spi port f cclk 6.25 mhz cclk frequency. t ccpl 80 ns cclk pulse width low. t ccph 80 ns cclk pulse width high. t cls 0 ns clatch setup. time to cclk rising. t clh 100 ns clatch hold. time from cclk rising. t clph 80 ns clatch pulse width high. t cds 0 ns cdata setup. time to cclk rising. t cdh 80 ns cdata hold. time from cclk rising. t cod 101 ns cout delay. time from cclk falling. i 2 c port f scl 400 khz scl frequency. t sclh 0.6 s scl high. t scll 1.3 s scl low. t scs 0.6 s setup time, relevant for repeated start condition. t sch 0.6 s hold time. after this period, the first clock is generated. t ds 100 ns data setup time. t scr 300 ns scl rise time. t scf 300 ns scl fall time. t sdr 300 ns sda rise time. t sdf 300 ns sda fall time. t bft 0.6 bus-free time. time between stop and start. multipurpose pins and reset t grt 50 ns gpio rise time. t gft 50 ns gpio fall time. t gil 1.5 1/f s s gpio input latency. time until high/low value is read by core. t rlpw 20 ns reset low pulse width. 1 all timing specifications are given for the default (i 2 s) states of the serial input port and the serial output port (see table 67).
ADAU1401 rev. 0 | page 7 of 52 digital timing diagrams input_bclk input_lrclk sdata_inx left-justified mode lsb sdata_inx i 2 s mode sdata_inx right-justified mode t bih msb msb?1 msb msb 8-bit clocks (24-bit data) 12-bit clocks (20-bit data) 14-bit clocks (18-bit data) 16-bit clocks (16-bit data) t lis t sis t sih t sih t sis t sis t sih t sis t sih t lih t bil 06752-002 figure 2. serial input port timing ouput_bclk ouput_lrclk sdata_outx left-justified mode lsb sdata_outx i 2 s mode sdata_outx right-justified mode t bih msb msb?1 msb msb 8-bit clocks (24-bit data) 12-bit clocks (20-bit data) 14-bit clocks (18-bit data) 16-bit clocks (16-bit data) t los t sods t sodm t lch t ts t bil 06752-003 t sods t sodm t sods t sodm figure 3. serial output port timing
ADAU1401 rev. 0 | page 8 of 52 clatch cclk cdata cout t cls t cds t cdh t cod t ccph t ccpl t clh t clph 06752-004 figure 4. spi port timing t sch t sclh t scr t scll t scf t ds sda scl t sch t bft t scs 06752-005 figure 5. i 2 c port timing mclki reset t mp t rlpw 06752-006 figure 6. master clock and reset timing
ADAU1401 rev. 0 | page 9 of 52 absolute maximum ratings table 9. parameter rating dvdd to gnd 0 v to 2.2 v avdd to gnd 0 v to 4.0 v iovdd to gnd 0 v to 4.0 v digital inputs dgnd ? 0.3 v, iovdd + 0.3 v maximum junction temperature 135c storage temperature range ?65c to +150c soldering (10 sec) 300c stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. thermal resistance ja is specified for the worst-case conditions, that is, a device soldered in a circuit board for surface-mount packages. table 10. thermal resistance package type ja jc unit 48-lead lqfp 72 19.5 c/w esd caution
ADAU1401 rev. 0 | page 10 of 52 pin configuration and fu nction descriptions 36 35 34 33 32 31 30 29 28 27 26 25 1 2 3 4 5 6 7 8 9 10 11 12 avdd pll_l f pvdd pgnd mclki osco rsvd mp2 mp3 mp8 mp9 dgnd dvdd mp7 mp6 mp10 vdrive iovdd mp11 addr1/cdata/wb clatch/wp sda/cout scl/cclk dvdd agnd adc1 adc_res adc0 reset selfboot addr0 mp4 mp5 mp1 mp0 dgnd 13 14 15 16 17 18 19 20 21 22 23 24 48 47 46 45 44 43 42 41 40 39 38 37 avdd filta vout0 vout1 vout2 vout3 agnd filtd cm pll_mode1 pll_mode0 agnd ADAU1401 top view (not to scale) pin 1 indicator 06752-007 figure 7. 48-lead l qfp pin configuration table 11. pin function descriptions pin o. mnemonic type 1 page no. description 1, 37, 42 agnd pwr analog ground pin. the agnd, dgnd, and pgnd pins can be tied directly together in a common ground plane. agnd should be decoupled to an avdd pin with a 100 nf capacitor. 2 adc1 a_in 19 analog audio input 1. full-scale 100 a rms input. current in put allows input voltage level to be scaled with an external resistor. an 18 k resistor gives a 2 v rms full-scale input. 3 adc_res a_in 19 adc reference current. the full-scale current of the adcs can be set with an external 18 k resistor connected between this pin and ground. 4 adc0 a_in 19 analog audio input 0. full-scale 100 a rms input. current in put allows input voltage level to be scaled with an external resistor. an 18 k resistor gives a 2 v rms full-scale input. 5 reset d_in active low reset input. reset is triggered on a high-to-low edge, and the ADAU1401 exits reset on a low-to-high edge. for more information about initialization, see the power-up sequence section. 6 selfboot d_in 26 enable/disable self-boot. selfboot selects control port (low) or self-boot (high). setting this pin high initiates a self-boot operation when the ADAU1401 is brought out of a reset. this pin can be tied directly to the control voltage or pulled up/down with a resistor. 7 addr0 d_in 22 i 2 c and spi address 0. in combination with addr1, this pin allows up to four ADAU1401s to be used on the same i 2 c bus and up to two ics to be used with a common spi clatch signal. 8 mp4 d_io 44 multipurpose gpio or serial input port lrclk (input_lrclk). 9 mp5 d_io 44 multipurpose gpio or serial input port bclk (input_bclk). 10 mp1 d_io 44 multipurpose gpio or serial in put port data 1 (sdata_in0). 11 mp0 d_io 44 multipurpose gpio or serial in put port data 0 (sdata_in1). 12, 25 dgnd pwr digital ground pin. the agnd, dgnd, and pgnd pins can be tied directly together in a common ground plane. dgnd should be decoupled to a dvdd pin with a 100 nf capacitor. 13, 24 dvdd pwr 1.8 v digital supply. this can be supplied either externally or generated from a 3.3 v supply with the on-board 1.8 v regulator. dvdd should be decoupled to dgnd with a 100 nf capacitor.
ADAU1401 rev. 0 | page 11 of 52 pin no. mnemonic type 1 page no. description 14 mp7 d_io 44 multipurpose gpio or serial o utput port data 1 (sdata_out1). 15 mp6 d_io 44 multipurpose gpio, serial output po rt data 0, or tdm data output (sdata_out0). 16 mp10 d_io 44 multipurpose gpio or serial o utput port lrclk (output_lrclk). 17 vdrive a_out 18 drive for 1.8 v regulator. the base of the voltage regulator external pnp transistor is driven from vdrive. 18 iovdd pwr supply for input and output pins. the vo ltage on this pin sets the highest input voltage that should be seen on th e digital input pins. this pin is also the supply for the digital output signa ls on the control port and mp pins. iovdd should always be set to 3.3 v. the current draw of this pin is variable because it is dependent on th e loads of the digital outputs. 19 mp11 d_io 44 multipurpose gpio or serial o utput port bclk (output_bclk). 20 addr1/cdata/wb d_in 22 , 25 , 26 addr1: i 2 c address 1. in combination with addr0, this sets the i 2 c address of the ic so that four ADAU1401s can be used on the same i 2 c bus. cdata: spi data input. wb: eeprom writeback trigger. a rising (default) or falling (if set in the eeprom messages) edge on this pin tr iggers a writeback of the interface registers to the external eeprom. this function can be used to save parameter data on power-down. 21 clatch/wp d_io 24 , 26 clatch: spi latch signal. must go low at the beginning of an spi transaction and high at the end of a transaction. each spi transaction can take a different number of cclks to complete, dependin g on the address and read/write bit that are sent at the beginning of the spi transaction. wp: self-boot eeprom write protect. this pin is an open-collector output when in self-boot mode. the ADAU1401 pulls this low to prohibit writes to an external eeprom. this pin should be pulled high to 3.3 v. 22 sda/cout d_io 22 , 25 sda: i 2 c data. this pin is a bidirectional open-collector. the line connected to this pin should have a 2.2 k pull-up resistor. cout: this spi data output is used fo r reading back registers and memory locations. it is three-stated when an spi read is not active. 23 scl/cclk d_io 22 , 25 scl: i 2 c clock. this pin is always an open-collector input when in i 2 c control mode. in self-boot mode, this pi n is an open-collector output (i 2 c master). the line connected to this pin should have a 2.2 k pull-up resistor. cclk: spi clock. this pin can either run continuously or be gated off between spi transactions. 26 mp9 d_io/a_io 44 multipurpose gpio, serial output port data 3 (sdata_out3), or auxiliary adc input 0. 27 mp8 d_io/a_io 44 multipurpose gpio, serial output port data 2 (sdata_out2), or auxiliary adc input 3. 28 mp3 d_io/a_io 44 multipurpose gpio, serial input port data 3 (sdata_in3), or auxiliary adc input 2. 29 mp2 d_io/a_io 44 multipurpose gpio, serial input port data 2 (sdata_in2), or auxiliary adc input 1. 30 rsvd x reserved. tie to ground, either directly or through a pull-down resistor. 31 osco d_out 17 crystal oscillator circuit output. a 100 damping resistor should be connected between this pin and the crys tal. this output should not be used to directly drive a clock to another ic. if the crystal oscillator is not used, this pin can be left disconnected. 32 mclki d_in 17 master clock input. mclki can either be connected to a 3.3 v clock signal or be the input from the crystal oscillator circuit. 33 pgnd pwr pll ground pin. the agnd, dgnd, and pgnd pins can be tied directly together in a common ground plane. pgnd should be decoupled to pvdd with a 100 nf capacitor. 34 pvdd pwr 3.3 v power supply for the pll and the auxiliary adc analog section. this should be decoupled to pgnd with a 100 nf capacitor. 35 pll_lf a_out 17 pll loop filter connection. two capacitors and a resistor need to be connected to this pin, as shown in figure 15 . 36, 48 avdd pwr 3.3 v analog supply. this should be decoupled to agnd with a 100 nf capacitor.
ADAU1401 rev. 0 | page 12 of 52 pin no. mnemonic type 1 page no. description 38 pll_mode0 d_in 17 39 pll_mode1 d_in 17 pll mode setting. pll_mode0 and pll_ mode1 set the output frequency of the master clock pll. see the setting master clock/pll mode section for more details. 40 cm a_out 1.5 v common-mode reference. a 47 f decoupling capacitor should be connected between this pin and ground to reduce crosstalk between the adcs and dacs. the material of the capacitors is not critical. this pin can be used to bias external analog circuits, as long as those circuits ar e not drawing current from the pin (such as when cm is connected to the noninverting input of an op amp). 41 filtd a_out dac filter decoupling pin. a 10 f capacitor should be connected between this pin and ground. the capacitor material is not critical. the voltage on this pin is 1.5 v. 43 vout3 a_out 20 44 vout2 a_out 20 45 vout1 a_out 20 46 vout0 a_out 20 vout0 to vout3 are the dac outputs. the full-scale output voltage is 0.9 v rms . these outputs can be used with either active or passive output reconstruction filters. 47 filta a_out adc filter decoupling pin. a 10 f capacitor should be connected between this pin and ground. the capacitor material is not critical. the voltage on this pin is 1.5 v. 1 pwr = power/ground, a_in = analog input, d_in = digital input, a_out = analog output, d_io = digital input/output, d_io/a_io = digital input/output or analog input/output.
ADAU1401 rev. 0 | page 13 of 52 typical performance characteristics 0.10 ?0.10 0.08 ?0.08 0 0.02 ?0.02 0.04 ?0.04 0.06 ?0.06 0 0.5 1.0 1.5 2.0 06752-010 (db) frequency (khz) f s = 48khz 0.20 0.10 0.15 0 ?0.10 0.05 ?0.05 ?0.15 ?0.2 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 06752-008 (db) frequency (khz) f s = 48khz figure 8. adc pass-band filter response figure 10. dac pass-band filter response 10 0 ?100 ?90 ?80 ?70 ?60 ?50 ?40 ?30 ?20 ?10 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 06752-011 (db) frequency (khz) f s = 48khz 02 . 5 3 . 0 3 . 5 2.01.51.00.5 4.5 06752-009 (db) frequency (khz) 10 0 ?100 ?90 ?80 ?70 ?60 ?50 ?40 ?30 ?20 ?10 4 . 0 f s = 48khz figure 11. dac stop-band filter response figure 9. adc stop-band filter response
ADAU1401 rev. 0 | page 14 of 52 system block diagram 22pf 22pf ADAU1401 06752-012 adcs dacs vout0 vout1 vout2 vout3 adc0 iovdd pvdd avdd dvdd vdrive adc1 adc_res filta filtd cm addr0 addr1/cdata/wb clatch/wp sda/cout scl/cclk selfboot reset rsvd eeprom, microcontroller, and/or selfboot logic agnd dgnd pgnd osco mclki pll_mode1 pll_mode0 pll_lf mp11 mp10 mp9 mp8 mp7 mp6 mp5 mp4 mp3 mp2 mp1 mp0 reset logic 100nf 10f 100nf 10f + + dac output filters (active or passive) multipurpose pin interfaces 100nf 10f 18k? 18k? 18k? audio adc input signals pll settings 3.3v 3mhz to 25mhz 56nf 3.3nf 475 ? 100? 3.3v to 1.8v regulator circuit 3.3 v 100nf 100nf 100nf + 100nf 10f + 10f + figure 12. system block diagram
ADAU1401 rev. 0 | page 15 of 52 overview the core of the ADAU1401 is a 28-bit dsp (56-bit with double- precision processing) optimized for audio processing. the program and parameter rams can be loaded with a custom audio processing signal flow built by using sigmastudio graphical programming software from analog devices, inc. the values stored in the parameter ram control individual signal processing blocks, such as equalization filters, dynamics processors, audio delays, and mixer levels. a safeload feature allows for transparent parameter updates and prevents clicks in the output signals. the program ram, parameter ram, and register contents can be saved in an external eeprom, from which the ADAU1401 can self-boot on startup. in this standalone mode, parameters can be controlled through the on-board multipurpose pins. the ADAU1401 can accept controls from switches, potentiometers, rotary encoders, and ir receivers. parameters such as volume and tone settings can be saved to the eeprom on power-down and recalled again on power-up. the ADAU1401 can operate with digital or analog inputs and outputs, or a mix of both. the stereo adc and four dacs each have an snr of at least +100 db and a thd + n of at least ?83 db. the 8-channel, flexible serial data input/output ports allow glueless interconnection to a variety of adcs, dacs, general-purpose dsps, s/pdif receivers and transmitters, and sample rate converters. the serial ports of the ADAU1401 can be configured in i 2 s, left-justified, right-justified, or tdm serial port compatible modes. twelve multipurpose (mp) pins allow the ADAU1401 to receive external control signals as input and to output flags or controls to other devices in the system. the mp pins can be configured as digital i/os, inputs to the 4-channel auxiliary adc, or serial data i/o ports. as inputs, they can be connected to buttons, switches, rotary encoders, potentiometers, ir receivers, or other external circuitry to control the internal signal processing program. when configured as outputs, these pins can be used to drive leds, control other ics, or connect to other external circuitry in an application. the ADAU1401 has a sophisticated control port that supports complete read/write capability of all memory locations. control registers are provided to offer complete control of the chips configuration and serial modes. the ADAU1401 can be configured for either spi or i 2 c control, or can self-boot from an external eeprom. an on-board oscillator can be connected to an external crystal to generate the master clock. in addition, a master clock phase- locked loop (pll) allows the ADAU1401 to be clocked from a variety of different clock speeds. the pll can accept inputs of 64 f s , 256 f s , 384 f s , or 512 f s to generate the internal master clock of the core. the sigmastudio software is used to program and control the sigmadsp? through the control port. along with designing and tuning a signal flow, the tools can be used to configure all of the dsp registers and burn a new program into the external eeprom. sigmastudios graphical interface allows anyone with digital or analog audio processing knowledge to easily design a dsp signal flow and port it to a target application. at the same time, it provides enough flexibility and programmability for an experienced dsp programmer to have in-depth control of the design. in sigmastudio, the user can connect graphical blocks (such as biquad filters, dynamics processors, mixers, and delays), compile the design, and load the program and parameter files into the ADAU1401 memory through the control port. signal processing blocks available in the provided libraries include ? single- and double-precision biquad filters ? processors with peak or rms detection for monochannel and multichannel dynamics ? mixers and splitters ? tone and noise generators ? fixed and variable gain ? loudness ? delay ? stereo enhancement ? dynamic bass boost ? noise and tone sources ? fir filters ? level detectors ? gpio control and conditioning additional processing blocks are always being developed. analog devices also provides proprietary and third-party algorithms for applications such as matrix decoding, bass enhancement, and surround virtualizers. contact analog devices for information about licensing these algorithms. the ADAU1401 operates from a 1.8 v digital power supply and a 3.3 v analog supply. an on-board voltage regulator can be used to operate the chip from a single 3.3 v supply. it is fabricated on a single monolithic, integrated circuit and is packaged in a 48-lead lqfp for operation over the 0c to +70c temperature range.
ADAU1401 rev. 0 | page 16 of 52 initialization this section details the procedure for properly setting up the ADAU1401. the following five-step sequence provides an overview of how to initialize the ic: table 12 lists typical times to boot the ADAU1401 into an applications operational state, assuming a 400 khz i 2 c clock loading a full program, parameter set, and all registers (about 8.5 kb). in reality, most applications will not fill the rams and therefore boot time (column 3 of 1. apply power to ADAU1401. tabl e 12 ) will be less. 2. wait for pll to lock. 3. load sigmadsp program and parameters. control registers setup 4. set up registers (including multipurpose pins and digital interfaces). the following registers must be set as described in this section to initialize the ADAU1401. these settings are the basic minimum settings needed to operate the ic with an analog input/output of 48 khz. more registers may need to be set, depending on the application. see the 5. turn off the default muting of the converters, clear the data registers, and initialize the dac setup register (see the control registers setup section for specific settings). rams and registers section for additional settings. to only test analog audio pass-through (adcs to dacs), steps 3 and 4 can be skipped and the default internal program can be used. dsp core control register (address 2076) power-up sequence set bits [4:2] (adm, dam, and cr) each to 1. the ADAU1401 has a built-in power-up sequence that initializes the contents of all internal rams on power-up or when the device is brought out of a reset. on the positive edge of dac setup register (address 2087) set bits [0:1] (ds [1:0]) to 01. recommended program/parameter loading procedure reset , the contents of the internal program boot rom are copied to the internal program ram memory, the parameter ram is filled with values (all 0s) from its associated boot rom, and all registers are initialized to 0s. the default boot rom program copies audio from the inputs to the outputs without processing it (see when writing large amounts of data to the program or parameter ram in direct write mode, the processor core should be disabled to prevent unpleasant noises from appearing in the audio output. figure 13 ). in this program, serial digital input 0 and input 1 are output on dac0 and dac1 and serial digital output 0 and output 1. adc0 and adc1 are output on dac2 and dac3. the data memories are also zeroed at power- up. new values should not be written to the control port until the initialization is complete. 1. set bit 3 and bit 4 (active low) of the core control register to 1 to mute the adcs and dacs. this begins a volume ramp-down. 2. set bit 2 (active low) of the core control register to 1. this zeroes the sigmadsp accumulators, the data output registers, and the data input registers. 3. fill the program ram using burst mode writes. table 12. power-up time 4. fill the parameter ram using burst mode writes. max program/ parameter/register boot time (i 2 c) mclki input init. time total 5. deassert bit 2 to bit 4 of the core control register. adc0 dac1 dac0 dac2 dac3 adc1 sdata_in0 sdata_out0 06752-013 3.072 mhz (64 f s ) 85 ms 175 ms 260 ms 11.289 mhz (256 f s ) 23 ms 175 ms 198 ms 12.288 mhz (256 f s ) 21 ms 175 ms 196 ms 18.432 mhz (384 f s ) 16 ms 175 ms 191 ms 24.576 mhz (512 f s ) 11 ms 175 ms 186 ms the pll start-up time lasts for 2 18 cycles of the clock on the mclki pin. this time ranges from 10.7 ms for a 24.576 mhz (512 f s ) input clock to 85.3 ms for a 3.072 mhz (64 f s ) input clock and is measured from the rising edge of figure 13. default program signal flow power-reduction modes reset . following the pll startup, the duration of the ADAU1401 boot cycle is about 42 s for a f s of 48 khz. the user should avoid writing to or reading from the ADAU1401 during this start-up time. for an mclk input of 12.288 mhz, the full initialization sequence (pll startup plus boot cycle) is approximately 21 ms. as the device comes out of a reset, the clock mode is immediately set by the pll_mode0 and pll_mode1 pins. the reset is synchronized to the falling edge of the internal clock. sections of the ADAU1401 chip can be turned on and off as needed to reduce power consumption. these include the adcs, dacs, and voltage reference. the individual analog sections can be turned off by writing to the auxiliary adc and power control register. by default, the adcs, dacs, and reference are enabled (all bits set to 0). each of these can be turned off by writing a 1 to the appropriate bits in this register. the adc power-down mode powers down both
ADAU1401 rev. 0 | page 17 of 52 adcs, and each dac can be powered down individually. the current savings is about 15 ma when the adcs are powered down and about 4 ma for each dac that is powered down. the voltage reference, which is supplied to both the adcs and dacs, should only be powered down if all adcs and dacs are powered down. the reference is powered down by setting both bit 6 and bit 7 of the control register. if the oscillator is not utilized in the design, it can be powered down to save power. this can be done if a system master clock is already available in the system. by default, the oscillator is powered on. the oscillator powers down when a 1 is written to the opd bit of the oscillator power-down register (see table 61 ). setting master clock/pll mode the mclki input of the ADAU1401 feeds a pll, which generates the 50 mips sigmadsp core clock. in normal operation, the input to mclki must be one of the following: 64 f s , 256 f s , 384 f s , or 512 f s , where f s is the input sampling rate. the mode is set on pll_mode0 and pll_mode1 as described in using the oscillator the ADAU1401 can use an on-board oscillator to generate its master clock. the oscillator is designed to work with a 256 f s master clock, which is 12.288 mhz for a f s of 48 khz and 11.2896 mhz for a f s of 44.1 khz. the crystal in the oscillator circuit should be an at-cut, parallel resonator operating at its fundamental frequency. table 13 . if the ADAU1401 is set to receive double-rate signals (by reducing the number of program steps per sample by a factor of 2 using the core control register), the master clock frequency must be 32 f s , 128 f s , 192 f s , or 256 f s . if the ADAU1401 is set to receive quad-rate signals (by reducing the number of program steps per sample by a factor of 4 using the core control register), the master clock frequency must be 16 f s , 64 f s , 96 f s , or 128 f s . on power-up, a clock signal must be present on mclk so that the ADAU1401 can complete its initialization routine. figure 14 shows the external circuit recommended for proper operation. c1 100 ? mclki osco c2 ADAU1401 06752-014 figure 14. crystal oscillator circuit tale 13. pll modes the 100 damping resistor on osco gives the oscillator a voltage swing of approximately 2.2 v. the crystal shunt capaci- tance should be 7 pf. its load capacitance should be about 18 pf, although the circuit supports values of up to 25 pf. the necessary values of the c1 and c2 load capacitors can be calculated from the crystal load capacitance as follows: mclki input pll_mode0 pll_mode1 64 f s 0 0 256 f s 0 1 384 f s 1 0 512 f s 1 1 stray l c c2c1 c2c1 c u the clock mode should not be changed without also resetting the ADAU1401. if the mode is changed during operation, a click or pop can result in the output signals. the state of the pll_modex pins should be changed while where c stray is the stray capacitance in the circuit and is usually assumed to be approximately 2 pf to 5 pf. osco should not be used to directly drive the crystal signal to another ic. this signal is an analog sine wave, and it is not appro- priate to use it to drive a digital input. there are two options for using the ADAU1401 to provide a master clock to other ics in the system. the first, and less recommended, method is to use a high impedance input digital buffer on the osco signal. if this is done, minimize the trace length to the buffer input. the second method is to use a clock from the serial output port. pin mp11 can be set as an output (master) clock divided down from the internal core clock. if this pin is set to serial output port (output_bclk) mode in the multipurpose pin configuration register (2081) and the port is set to master in the serial output control register (2078), the desired output frequency can also be set in the serial output control register with bits obf [1:0] (see table 5 0 ). reset is held low. the pll loop filter should be connected to the pll_lf pin. this filter, shown in figure 15 , includes three passive components two capacitors and a resistor. the values of these components do not need to be exact; the tolerance can be up to 10% for the resistor and up to 20% for the capacitors. the 3.3 v signal shown in figure 15 can be connected to the avdd supply of the chip. ADAU1401 3.3 v 475 ? pll_lf 56nf 3 .3n f 06752-015 figure 15. pll loop filter
ADAU1401 rev. 0 | page 18 of 52 voltage regulator two specifications must be considered when choosing a regulator transistor: the transistors current amplification factor (h fe or beta) should be at least 100, and the transistors collector must be able to dissipate the heat generated when regulating from 3.3 v to 1.8 v. the maximum digital current drawn from the ADAU1401 is 60 ma. the equation to determine the minimum power dissipation of the transistor is as follows: the digital voltage of the ADAU1401 must be set to 1.8 v. the chip includes an on-board voltage regulator that allows the device to be used in systems without an available 1.8 v supply but with an available 3.3 v supply. the only external components needed in such instances are a pnp transistor, a resistor, and a few bypass capacitors. only one pin, vdrive, is necessary to support the regulator. (3.3 v ? 1.8 v) 60 ma = 90 mw there are many transistors, such as the fzt953 from zetex semiconductors, with these specifications available in small sot-23 or sot-223 packages. the recommended design for the voltage regulator is shown in figure 16 . the 10 f and 100 nf capacitors shown in this configuration are recommended for bypassing, but are not necessary for operation. each dvdd pin should have its own 100 nf bypass capacitor, but only one bulk capacitor (10 f to 47 f) is needed for both dvdd pins. with this configuration, 3.3 v is the main system voltage; 1.8 v is generated at the transistors collector, which is connected to the dvdd pins. vdrive is connected to the base of the pnp transistor. if the regulator is not used in the design, vdrive can be tied to ground. 3.3 v 1k? vdrive dvdd 10f 100nf ADAU1401 06752-016 + figure 16. voltage regulator configuration
ADAU1401 rev. 0 | page 19 of 52 audio adcs the ADAU1401 has two - adcs. the signal-to-noise ratio (snr) of the adcs is 100 db, and the thd + n is ?83 db. the values of the resistors (internal plus external) in series with the adc0 and adc1 pins can be calculated as follows: the stereo audio adcs are current input; therefore, a voltage- to-current resistor is required on the inputs. this means that the voltage level of the input signals to the system can be set to any level; only the input resistors need to be scaled to provide the proper full-scale current input. the adc0 and adc1 input pins, as well as adc_res, have an internal 2 k resistor for esd protection. the voltage seen directly on the adc input pins is the 1.5 v common mode. news totalinput f voltage inputrms r _ 000,48 k 10) ( = table 14 lists the external and total resistor values for common signal input levels at a 48 khz sampling rate. a full-scale rms input voltage of 0.9 v is shown in the table because a full-scale signal at this input level is equal to a full-scale output on the dacs. table 14. adc input resistor values the external resistor connected to adc_res sets the full-scale current input of the adcs. the full range of the adc inputs is 100 a rms with an external 18 k resistor on adc_res (20 k total, because it is in series with the internal 2 k). the only reason to change the adc_res resistor is if a sampling rate other than 48 khz is used. total adc0/adc1 input resistance (external + internal) (k) full-scale rms input voltage (v) adc0/adc1 resistor value (k) adc_res value (k) 0.9 18 7 9 the voltage-to-current resistors connected to adc0/adc1 set the full-scale voltage input of the adcs. with a full-scale current input of 100 a rms, a 2.0 v rms signal with an external 18 k resistor (in series with the 2 k internal resistor) results in an input using the full range of the adc. the matching of these resistors to the adc_res resistor is important to the operation of the adcs. for these three resistors, a 1% tolerance is recommended. either the adc0 and/or adc1 input pins can be left unconnected if that channel of the adc is unused. these calculations of resistor values assume a 48 khz sample rate. the recommended input and current setting resistors scale linearly with the sample rate because the adcs have a switched-capacitor input. the total value (2 k internal plus external resistor) of the adc_res resistor with sample rate f s_new can be calculated as follows: news total f r _ 000,48 k 20 = 1.0 18 8 10 2.0 18 18 20 figure 17 shows a typical configuration of the adc inputs for a 2.0 v rms input signal for a f s of 48 khz. the 47 f capacitors are used to ac-couple the signals so that the inputs are biased at 1.5 v. adc1 adc0 adc_res 18k ? 47f 18k ? 47f 18k ? ADAU1401 06752-017 figure 17. audio adc input configuration
ADAU1401 rev. 0 | page 20 of 52 audio dacs the ADAU1401 includes four - dacs. the snr of the dac is 104 db, and the thd + n is ?90 db. a full-scale output on the dacs is 0.9 v rms (2.5 v p-p). the dacs are in an inverting configuration. if a signal inversion from input to output is undesirable, it can be reversed either by using an inverting configuration for the output filter or by simply inverting the signal in the sigmadsp program flow. the dac outputs can be filtered with either an active or a passive reconstruction filter. a single-pole, passive, low-pass filter with a 50 khz corner frequency, as shown in figure 18 , is sufficient to filter the dac out-of-band noise, although an active filter may provide better audio performance. shows a triple-pole, active, low-pass filter that provides a steeper roll-off and better stop-band attenuation than the passive filter. in this configuration, the v+ and v? pins of the ad8606 op amp are set to vdd and ground, respectively. to properly initialize the dacs, bits ds [1:0] in the dac setup register (address 2087) should be set to 01. 47f + 560 ? dac_out 06752-018 5.6nf filter_out figure 18. passive dac output filter figure 19 47f + 604 ? dac_out 49.9k ? 3.3nf filter_out 4.75k ? 4.75k ? 0 6752-019 150pf ad8606 c8 470f + figure 19. active dac output filter
ADAU1401 rev. 0 | page 21 of 52 control ports the ADAU1401 can operate in one of three control modes: ? i 2 c control ? spi control ? self-boot (no external controller) the ADAU1401 has both a 4-wire spi control port and a 2-wire i 2 c bus control port. each can be used to set the rams and registers. when the selfboot pin is low at power-up, the part defaults to i 2 c mode but can be put into spi control mode by pulling the clatch/wp pin low three times. when the selfboot pin is set high at power-up, the ADAU1401 loads its program, parameters, and register settings from an external eeprom on startup. the control port is capable of full read/write operation for all addressable memory and registers. most signal processing parameters are controlled by writing new values to the param- eter ram using the control port. other functions, such as mute and input/output mode control, are programmed by writing to the registers. all addresses can be accessed in a single-address mode or a burst mode. the first byte (byte 0) of a control port write contains the 7-bit chip address plus the r/ w bit. the next two bytes (byte 1 and byte 2) together form the subaddress of the memory or register location within the ADAU1401. this subaddress must be two bytes because the memory locations within the ADAU1401 are directly addressable and their sizes exceed the range of single-byte addressing. all subsequent bytes (starting with byte 3) contain the data, such as control port data, program data, or parameter data. the number of bytes per word depends on the type of data that is being written. the exact formats for specific types of writes are shown in table 2 3 to table 32 . the ADAU1401 has several mechanisms for updating signal processing parameters in real time without causing pops or clicks. if large blocks of data need to be downloaded, the output of the dsp core can be halted (using the cr bit in the dsp core control register (address 2076)), new data can be loaded, and then the device can be restarted. this is typically done during the booting sequence at startup or when loading a new program into ram. in cases where only a few parameters need to be changed, they can be loaded without halting the program. to avoid unwanted side effects while loading parameters on the fly, the sigmadsp provides the safeload registers. the safeload registers can be used to buffer a full set of parameters (for example, the five coefficients of a biquad) and then transfer these parameters into the active program within one audio frame. the safeload mode uses internal logic to prevent contention between the dsp core and the control port. the control port pins are multifunctional, depending on the mode in which the part is operating. table 15 details these multiple functions. table 15. control port pins and selfboot pin functions pin i 2 c mode spi mode self-boot scl/cclk sclinput cclkinput scloutput sda/cout sdaopen-collector output coutoutput sdaopen-collector output addr1/cdata/wb addr1input cdatainput wbwriteback trigger clatch/wp unused inputtie to ground or iovdd clatchinput wpeeprom write protect, open-collector output addr0 addr0input addr0input unused inputtie to ground or iovdd
ADAU1401 rev. 0 | page 22 of 52 i 2 c port the ADAU1401 supports a 2-wire serial (i 2 c-compatible) microprocessor bus driving multiple peripherals. two pins, serial data (sda) and serial clock (scl), carry information between the ADAU1401 and the system i 2 c master controller. in i 2 c mode, the ADAU1401 is always a slave on the bus, meaning it cannot initiate a data transfer. each slave device is recognized by a unique address. the address byte format is shown in table 16 . the ADAU1401 slave addresses are set with the addr0 and addr1 pins. the address resides in the first seven bits of the i 2 c write. the lsb of this byte sets either a read or write operation. logic level 1 corresponds to a read operation, and logic level 0 corresponds to a write operation. bit 5 and bit 6 of the address are set by tying the addrx pins of the ADAU1401 to logic level 0 or logic level 1. the full byte addresses, including the pin settings and read/ write bit, are shown in table 17 . burst mode addressing, where the subaddresses are automati- cally incremented at word boundaries, can be used for writing large amounts of data to contiguous memory locations. this increment happens automatically after a single-word write unless a stop condition is encountered. the registers and rams in the ADAU1401 range in width from one to five bytes, so the auto- increment feature knows the mapping between subaddresses and the word length of the destination register (or memory location). a data transfer is always terminated by a stop condition. both sda and scl should have 2.2 k pull-up resistors on the lines connected to them. the voltage on these signal lines should not be more than iovdd (3.3 v). table 16. ADAU1401 i 2 c address byte format bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 0 1 1 0 1 addr1 addr0 r/ w table 17. ADAU1401 i 2 c addresses addr1 addr0 read/ write slave address 0 0 0 0x68 0 0 1 0x69 0 1 0 0x6a 0 1 1 0x6b 1 0 0 0x6c 1 0 1 0x6d 1 1 0 0x6e 1 1 1 0x6f addressing initially, each device on the i 2 c bus is in an idle state monitoring the sda and scl lines for a start condition and the proper address. the i 2 c master initiates a data transfer by establishing a start condition, defined by a high-to-low transition on sda while scl remains high. this indicates that an address/data stream follows. all devices on the bus respond to the start condition and shift the next eight bits (the 7-bit address plus the r/ w bit) msb first. the device that recognizes the transmitted address responds by pulling the data line low during the ninth clock pulse. this ninth bit is known as an acknowledge bit. all other devices withdraw from the bus at this point and return to the idle condition. the r/ w bit determines the direction of the data. a logic 0 on the lsb of the first byte means the master will write information to the peripheral, whereas a logic 1 means the master will read information from the peripheral after writing the subaddress and repeating the start address. a data transfer takes place until a stop condition is encountered. a stop condition occurs when sda transitions from low to high while scl is held high. figure 20 shows the timing of an i 2 c write, and figure 21 shows an i 2 c read. stop and start conditions can be detected at any stage during the data transfer. if these conditions are asserted out of sequence with normal read and write operations, the ADAU1401 immediately jumps to the idle condition. during a given scl high period, the user should only issue one start condition, one stop condition, or a single stop condition followed by a single start condition. if an invalid subaddress is issued by the user, the ADAU1401 does not issue an acknowledge and returns to the idle condition. if the user exceeds the highest subaddress while in auto-increment mode, one of two actions is taken. in read mode, the ADAU1401 outputs the highest subaddress register contents until the master device issues a no acknowledge, indicating the end of a read. a no-acknowledge condition is where the sda line is not pulled low on the ninth clock pulse on scl. on the other hand, if the highest subaddress location is reached while in write mode, the data for the invalid byte is not loaded into any subaddress register, a no acknowledge is issued by the ADAU1401, and the part returns to the idle condition.
ADAU1401 rev. 0 | page 23 of 52 r/w 0 sck sda sda (continued) sck (continued) 00 0 adr sel 00 start by master frame 1 chip address byte frame 2 subaddress byte 1 frame 2 subaddress byte 2 frame 3 data byte 1 ack by ADAU1401 ack by ADAU1401 ack by ADAU1401 ack by ADAU1401 stop by master 06752-020 figure 20. i 2 c write to ADAU1401 clocking r/w sck sda sda (continued) sck (continued) sda (continued) sck (continued) adr sel start by master frame 2 subaddress byte 1 frame 3 subaddress byte 2 frame 4 chip address byte frame 1 chip address byte frame 6 read data byte 2 frame 5 read data byte 1 ack by ADAU1401 ack by ADAU1401 ack by ADAU1401 ack by ADAU1401 stop by master ack by master ack by master repeated start by master r/w adr sel 0 6752-021 figure 21. i 2 c read from ADAU1401 clocking
ADAU1401 rev. 0 | page 24 of 52 i 2 c read and write operations figure 22 shows the timing of a single-word write operation. every ninth clock, the ADAU1401 issues an acknowledge by pulling sda low. figure 23 shows the timing of a burst mode write sequence. this figure shows an example where the target destination registers are two bytes. the ADAU1401 knows to increment its subaddress register every two bytes because the requested subaddress corresponds to a register or memory area with a 2-byte word length. the timing of a single-word read operation is shown in figure 24 . note that the first r/ w bit is 0, indicating a write operation. this is because the subaddress still needs to be written to set up the internal address. after the ADAU1401 acknowledges the receipt of the subaddress, the master must issue a repeated start command followed by the chip address byte with the r/ w set to 1 (read). this causes the ADAU1401 sda to reverse and begin driving data back to the master. the master then responds every ninth pulse with an acknowledge pulse to the ADAU1401. figure 25 shows the timing of a burst mode read sequence. this figure shows an example where the target read registers are two bytes. the ADAU1401 increments its subaddress every two bytes because the requested subaddress corresponds to a register or memory area with word lengths of two bytes. other addresses may have word lengths ranging from one to five bytes. the ADAU1401 always decodes the subaddress and sets the auto- increment circuit so that the address increments after the appropriate number of bytes. figure 22 to figure 25 use the following abbreviations: s = start bit p = stop bit am = acknowledge by master as = acknowledge by slave s chip address, r/ w = 0 as subaddress high as subaddress low as data byte 1 as data byte 2 as data byte n p figure 22. single-word i 2 c write format s chip address, r/ w = 0 as subaddress high as subaddress low as data- word 1, byte 1 as data- word 1, byte 2 as data- word 2, byte 1 as data- word 2, byte 2 as p figure 23. burst mode i 2 c write format s chip address, r/ w = 0 as subaddress high as subaddress low as s chip address, r/ w = 1 as data byte 1 am data byte 2 am data byte n p figure 24. single-word i 2 c read format s chip address, r/ w = 0 as subaddress high as subaddress low as s chip address, r/ w = 1 as data- word 1, byte 1 am data- word 1, byte 2 am p figure 25. burst mode i 2 c read format
ADAU1401 rev. 0 | page 25 of 52 spi port table 18. ADAU1401 spi address byte format by default, the ADAU1401 is in i 2 c mode, but it can be put into spi control mode by pulling clatch/wp low three times. the spi port uses a 4-wire interface, consisting of clatch, cclk, cdata, and cout signals, and is always a slave port. the clatch signal should go low at the beginning of a transaction and high at the end of a transaction. the cclk signal latches cdata during a low-to-high transition. cout data is shifted out of the ADAU1401 on the falling edge of cclk and should be clocked into a receiving device, such as a microcontroller, on the cclk rising edge. the cdata signal carries the serial input data, and the cout signal is the serial output data. the cout signal remains three-stated until a read operation is requested. this allows other spi-compatible peripherals to share the same readback line. all spi transactions have the same basic format shown in bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 0 0 0 0 0 0 addr0 r/ w subaddress the 12-bit subaddress word is decoded into a location in one of the memories or registers. this subaddress is the location of the appropriate ram location or register. the msbs of the subaddress are zero-padded to bring the word to a full 2-byte length. data bytes the number of data bytes varies according to the register or memory being accessed. during a burst mode write, an initial subaddress is written followed by a continuous sequence of data for consecutive memory/register locations. the detailed data format for continuous mode operation is shown in table 19 . a timing diagram is shown in figure 4 . all data should be written msb first. the ADAU1401 cannot be taken out of spi mode without a full reset. table 24 and table 26 in the read/write data formats section. a sample timing diagram for a single-write spi operation to the parameter ram is shown in chip address r/ w figure 26 . a sample timing diagram of a single-read spi operation is shown in figure 27 . the cout pin goes from three-state to being driven at the beginning of byte 3. in this example, byte 0 to byte 2 contain the addresses and the r/ the first byte of an spi transaction includes the 7-bit chip address and a r/ w bit. the chip address is set by the addr0 pin. this allows two ADAU1401s to share a clatch signal, yet still operate independently. when addr0 is low, the chip address is 0000000; when it is high, the address is 0000001 (see table 18 ). the lsb of this first byte determines whether the spi transaction is a read (logic level 1) or a write (logic level 0). w bit and subsequent bytes carry the data. table 19. generic control word format byte 0 byte 1 byte 2 byte 3 byte 4 1 chip_adr [6:0], r/ w 0000, subadr [11:8] subadr [7:0] data data 1 continues to end of data. 06752 -026 clatch cclk cdata byte 0 byte 1 byte 2 byte 3 figure 26. spi write to ADAU1401 clocking (single-write mode) 06752-027 clatch cclk cdata cout byte 0 byte 1 hi-z data data data hi-z figure 27. spi read from ADAU1401 clocking (single-read mode)
ADAU1401 rev. 0 | page 26 of 52 self-boot on power-up, the ADAU1401 can load a program and a set of parameters that have been saved in an external eeprom. combined with the auxiliary adc and the multipurpose pins, this eliminates the need for a microcontroller in the system. the self-booting is accomplished by the ADAU1401 acting as a master on the i 2 c bus on startup, which occurs when the selfboot pin is set high. the ADAU1401 cannot self-boot in spi mode. the maximum necessary eeprom size for program and parameters is 9248 bytes, or just over 8.5 kb. this does not include register settings or overhead bytes, but such factors do not add a significant number of bytes. this much memory is only needed if the program ram (1024 five bytes), parameter ram (1024 four bytes), and interface registers (8 four bytes) are completely full. most applications will not use the full program and parameter rams, so an 8 kb eeprom should be sufficient. a self-boot operation is trigge red on the rising edge of reset when the selfboot and wp pins are set high. the ADAU1401 reads the program, parameters, an d register settings from the eeprom. after the ADAU1401 finishes self-booting, additional messages can be sent to the ADAU1401 on the i 2 c bus, although this typically is not necessary in a self-booting application. the i 2 c device address is 0x68 for a wr ite and 0x69 for a read in this mode. the addrx pins have different functions when the chip is in this mode, so the settings on them can be ignored. the ADAU1401 does not self-boot if wp is set low. holding this pin low allows the eeprom to be programmed in-circuit. the wp pin is pulled low (it typically has a resistor pull-up) to enable writes to the eeprom, but this in turn disables the self- boot function until the wp pin is returned high. the ADAU1401 is a master on the i 2 c bus during self-boot and writeback. although it is uncommon for an application using self-boot to also have a microcontroller connected to the control lines, care should be taken that no other device tries to write to the i 2 c bus during self-boot or writeback. the ADAU1401 generates scl at 8 f s ; therefore, for a f s of 48 khz, scl runs at 384 khz. scl has a duty cycle of 3/8 in accordance with the i 2 c specification. the ADAU1401 reads from eepr om chip address 0xa1. the lsbs of the addresses of some eeproms are pin configurable; in most cases, these pins should be tied low to set this address. eeprom format the eeprom data contains a sequence of messages. each discrete message is one of the seven types defined in tabl e 20 and consists of a sequence of one or more bytes. the first byte identifies the message type. bytes are written msb first. most messages are block write (0x01) type s, which are used for writing to the ADAU1401 program ram, parameter ram, and control registers. the body of the message followi ng the message type should start with a 0x00 byte; this is the chip address. as with all other control port transactions, following the chip address is a 2-byte register/memory address field. table 21 shows an example of what should be stored in the eeprom, starting with eeprom ad dress 0. in this example, the interface registers are first set to control port write mode (line 1), which is followed by 18 no-operation (no-op) bytes (line 2 to line 4) so that the in terface register data appears on page 2 of the eeprom. next follows the write header (line 4) and then 32 bytes of interface register data (line 5 to line 8). finally, the program ram data, starting at ADAU1401 address 0x04 0x00 is written (line 9 to line 11). in this example, the program length is 70 words, or 350 bytes, so 332 more bytes are included in the eeprom but are not shown in table 21 . writeback a writeback occurs when the wb pin is triggered and data is written to the eeprom from the ADAU1401. this function is typically used to save the volume setting and other parameter settings to the eeprom just before power is removed from the system. a rising edge on the wb pin triggers a writeback when the device is in self-boot mode, unless a message to set the wb to the falling edge sensitive (0x05) is contained in the self-boot message sequence. only one writeback takes place unless a message to set multiple writebacks (0x04) is contained in the self-boot message sequence. the wp pin is pulled low when a writeback is triggered to al low writing to the eeprom. the ADAU1401 is only capable of writing back the contents of the interface registers to the eeprom. these registers are usually set by the dsp program, but can al so be written to directly after setting bit 6 of the core control register. the parameter settings that should be saved are configured in sigmastudio.
ADAU1401 rev. 0 | page 27 of 52 the writeback function writ es data from the ADAU1401 interface registers to the second page of the self-boot eeprom, address 32 to address 63. starting at eeprom address 26 (so that the interface register data begins at address 32), the eeprom should be programmed with six bytesthe message byte (0x01), two length bytes, the chip address (0x00), and the 2-byte subaddress for the interf ace registers (0x08 0x00). there must be a message to the dsp core control register to enable writing to the interface registers prior to the interface register data in the eeprom. this sh ould be stored in eeprom address 0. no-op messages (0x03) can be used in between messages to ensure that these conditions are met. the ADAU1401 writes to eepro m chip address 0xa0. the lsbs of the addresses of some eeproms are pin configurable; in most cases, these pins should be tied low to set the address to 0xa0. the maximum number of bytes that is written back from the ADAU1401 is 35 (eight 4-byte interface registers plus three bytes of eeprom-addressing overhead). with scl running at 384 khz, the writeback operation takes approximately 73 s to complete after being triggered. ensure that sufficient power is available to the system to allow enough time for a writeback to complete, especially if the wb signal is triggered from a falling power supply voltage. table 20. eeprom message types message id message type following bytes 0x00 end none 0x01 write two bytes indicating message length followed by appropriate number of data bytes 0x02 delay two bytes for delay 0x03 no operation executed none 0x04 set multiple writeback none 0x05 set wb to falling edge sensitive none 0x06 end and wait for writeback none table 21. eeprom data example 1 0x01 0x00 0x05 0x00 0x08 0x1c 0x00 0x40 write length device addr. core control re gister address core control register data 2 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 no-op bytes 3 0x03 0x03 0x03 0x03 0x03 0x03 0x03 0x03 no-op bytes 4 0x03 0x03 0x01 0x00 0x23 0x00 0x08 0x00 no-op bytes write length device addr. interface register address 5 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 interface register data 6 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 interface register data 7 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 interface register data 8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 interface register data 9 0x01 0x01 0x61 0x00 0x04 0x00 0x00 0x00 write length device addr. program ram address program ram data 10 0x00 0x00 0x01 0x00 0x00 0x00 0xe8 0x01 program ram data 11 0x00 0x00 0x00 0x00 0x01 0x00 0x08 0x00 program ram data (conti nues for 332 more bytes)
ADAU1401 rev. 0 | page 28 of 52 signal processing the ADAU1401 is designed to provide all audio signal processing functions commonly used in stereo or multichannel playback systems. the signal processing flow is designed using the sigmastudio software, which allows graphical entry and real- time control of all signal processing functions. figure 28 many of the signal processing functions are coded using full, 56-bit, double-precision arithmetic data. the input and output word lengths of the dsp core are 24 bits. four extra headroom bits are used in the processor to allow internal gains of up to 24 db without clipping. additional gains can be achieved by initially scaling down the input signal in the dsp signal flow. numeric formats dsp systems commonly use a standard numeric format. fractional number systems are specified by an a.b format, where a is the number of bits to the left of the decimal point and b is the number of bits to the right of the decimal point. the ADAU1401 uses the same numeric format for both the parameter and data values. the format is as follows. numerical format: 5.23 linear range: ?16.0 to (+16.0 ? 1 lsb) examples: 1000 0000 0000 0000 0000 0000 0000 = ?16.0 1110 0000 0000 0000 0000 0000 0000 = ?4.0 1111 1000 0000 0000 0000 0000 0000 = ?1.0 1111 1110 0000 0000 0000 0000 0000 = ?0.25 1111 1111 0011 0011 0011 0011 0011 = ?0.1 1111 1111 1111 1111 1111 1111 1111 = (1 lsb below 0.0) 0000 0000 0000 0000 0000 0000 0000 = 0.0 0000 0000 1100 1100 1100 1100 1101 = 0.1 0000 0010 0000 0000 0000 0000 0000 = 0.25 0000 1000 0000 0000 0000 0000 0000 = 1.0 0010 0000 0000 0000 0000 0000 0000 = 4.0 0111 1111 1111 1111 1111 1111 1111 = (16.0 ? 1 lsb). the serial port accepts up to 24 bits on the input and is sign- extended to the full 28 bits of the dsp core. this allows internal gains of up to 24 db without internal clipping. a digital clipper circuit is used between the output of the dsp core and the dacs or serial port outputs (see figure 28 ). this clips the top four bits of the signal to produce a 24-bit output with a range of 1.0 (minus 1 lsb) to ?1.0. shows the maximum signal levels at each point in the data flow in both binary and decibel levels. 4-bit sign extension data in 1.23 (0db) 1.23 (0db) 1.23 (0db) 5.23 (24db) 5.23 (24db) serial port signal processing (5.23 format) digital clipper 0 6752-028 figure 28. numeric precision and clipping structure programming on power-up, the ADAU1401 default program passes the unprocessed input signals to the outputs (shown in figure 13 ), but the outputs are muted by default (see the power-up sequence section). there are 1024 instruction cycles per audio sample, resulting in about 50 mips available. the sigmadsp runs in a stream-oriented manner, meaning that all 1024 instructions are executed each sample period. the ADAU1401 can also be set up to accept double- or quad-speed inputs by reducing the number of instructions per sample that are set in the core control register. the part can be easily programmed using sigmastudio ( figure 29 ), a graphical tool provided by analog devices. no knowledge of writing line-level dsp code is required. more information about sigmastudio can be found at www.analog.com . 06752-029 figure 29. sigmastudio screen shot
ADAU1401 rev. 0 | page 29 of 52 rams and registers table 22. ram map and read/write modes memory size address range read write write modes parameter ram 1024 32 0 to 1023 (0x0000 to 0x03ff) yes yes direct write 1 safeload write program ram 1024 40 1024 to 2047 (0x0400 to 0x07ff) yes yes direct write 1 1 internal registers should be cleared first to avoid clicks/pops. address maps table 22 shows the ram map and table 33 shows the ADAU1401 register map. the address space encompasses a set of registers and two rams: one holds signal processing parameters and one holds the program instructions. the program ram and parameter ram are initialized on power-up from on-board boot roms (see the power-up sequence section). all rams and registers have a default value of all 0s, except for the program ram, which is loaded with the default program (see the initialization section). parameter ram the parameter ram is 32 bits wide and occupies address 0 to address 1023. each parameter is padded with four 0s before the msb to extend the 28-bit word to a full 4-byte width. the parameter ram is initialized to all 0s on power-up. the data format of the parameter ram is twos complement, 5.23. this means that the coefficients can range from +16.0 (minus 1 lsb) to ?16.0, with 1.0 represented by the binary word 0000 1000 0000 0000 0000 0000 0000 or by the hexadecimal word 0x00 0x80 0x00 0x00. the parameter ram can be written using one of the two following methods: a direct read/write or a safeload write. direct read/write the direct read/write method allows direct access to the program ram and parameter ram. this mode of operation is typically used when loading a new ram using burst mode addressing. the clear registers bit in the core control register should be set to 0 using this mode to avoid any clicks or pops in the outputs. note that this mode can be used during live program execution, but because there is no handshaking between the core and the control port, the parameter ram is unavailable to the dsp core during control writes, resulting in clicks and pops in the audio stream. safeload write up to five safeload registers can be loaded with the parameter ram address/data. the data is then transferred to the requested address when the ram is not busy. this method can be used for dynamic updates while live program material is playing through the ADAU1401. for example, a complete update of one biquad section can occur in one audio frame while the ram is not busy. this method is not available for writing to the program ram or control registers. data ram the ADAU1401 data ram is used to store audio data words for processing. for the most part, this process is transparent to the user. the user cannot address this ram space, which has a size of 2k words, directly from the control port. data ram utilization should be considered when implementing blocks that require large amounts of data ram space, such as delays. the sigmadsp core processes delay times in one-sample increments; therefore, the total pool of delay available to the user equals 2048 multiplied by the sample period. for a f s of 48 khz, the pool of available delay is a maximum of about 43 ms. in practice, this much data memory is not available to the user because every block in a design uses a few data memory locations for its processing. in most dsp programs, this does not signifi- cantly impact the total delay time. the sigmastudio compiler manages the data ram and indicates if the number of addresses needed in the design exceeds the maximum available. read/write data formats the read/write formats of the control port are designed to be byte oriented. this allows easy programming of common microcontroller chips. to fit into a byte-oriented format, 0s are appended to the data fields before the msb to extend the data- word to eight bits. for example, 28-bit words written to the parameter ram are appended with four leading 0s to equal 32 bits (four bytes); 40-bit words written to the program ram are not appended with 0s because they are already a full five bytes. these zero-padded data fields are appended to a 3-byte field consisting of a 7-bit chip address, a read/write bit, and an 11-bit ram/register address. the control port knows how many data bytes to expect based on the address given in the first three bytes. the total number of bytes for a single-location write command can vary from four bytes (for a control register write) to eight bytes (for a program ram write). burst mode can be used to fill contiguous register or ram locations. a burst mode write begins by writing the address and data of the first ram or register location to be written. rather than ending the control port transaction (by issuing a stop command in i 2 c mode or by bringing the clatch signal high in spi mode after the data-word), as would be done in a single-address write, the next data-word can be immediately written without specifying its address. the ADAU1401 control port auto-increments the address of each write even across the boundaries of the different rams and registers. table 24 and table 26 show examples of burst mode writes.
ADAU1401 rev. 0 | page 30 of 52 table 23. parameter ram read/wri te format (single address) byte 0 byte 1 byte 2 byte 3 bytes [4:6] chip_adr [6:0], w /r 000000, param_adr [9:8] param_adr [7:0] 0000, param [27:24] param [23:0] table 24. parameter ram block read/write format (burst mode) byte 0 byte 1 byte 2 byte 3 bytes [4:6] bytes [7:10] bytes [11:14] chip_adr [6:0], w /r 000000, param_adr [9:8] param_adr [7:0] 0000, param [27:24] param [23:0] param_adr + 1 param_adr + 2 table 25. program ram read/wri te format (single address) byte 0 byte 1 byte 2 bytes [3:7] chip_adr [6:0], w /r 00000, prog_adr [10:8] prog_adr [7:0] prog [39:0] table 26. program ram block read/write format (burst mode) byte 0 byte 1 byte 2 bytes [3:7] bytes [8:12] bytes [13:17] chip_adr [6:0], w /r 00000, prog_adr [10:8] prog_adr [7:0] prog [39:0] prog_adr + 1 prog_adr + 2 table 27. control register read/write form at (core, serial out 0, serial out 1) byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, reg_adr [11:8] reg_adr [7:0] data [15:8] data [7:0] table 28. control register read/write form at (ram configuration, serial input) byte 0 byte 1 byte 2 byte 3 chip_adr [6:0], w /r 0000, reg_adr [11:8] reg_adr [7:0] data [7:0] table 29. data capture register write format byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, data_capture_adr [11:8] data_capture_adr [7:0] 000, progcount [10:6] 1 progcount [5:0] 1 , regsel [1:0] 2 1 progcount [10:0] is the value of the program counter when the data capture occurs (the table of values is generated by the sig mastudio compiler). 2 regsel [1:0] selects one of four registers (see the 2074 to 2075 (0x081a to 0x081b)data capture registers section). table 30. data capture (control port readback) register read format byte 0 byte 1 byte 2 bytes [3:5] chip_adr [6:0], w /r 0000, data_capture_adr [11:8] data_capture_adr [7:0] data [23:0] table 31. safeload address register write format byte 0 byte 1 byte 2 byte 3 byte 4 chip_adr [6:0], w /r 0000, safeload_adr [11:8] safeload_adr [7:0] 000000, param_adr [9:8] param_adr [7:0] table 32. safeload data register write format byte 0 byte 1 byte 2 byte 3 byte 4 bytes [5:7] chip_adr [6:0], w /r 0000, safeload_adr [11:8] safeload_adr [7 :0] 00000000 0000, data [27:24] data [23:0]
ADAU1401 rev. 0 | page 31 of 52 control register map table 33. register map 1 msb lsb d39 d38 d37 d36 d35 d34 d33 d32 d31 d30 d29 d28 d27 d 26 d25 d24 d23 d22 d21 d20 d19 d18 d17 d16 reg (hex) reg (dec) no. o f bytes name d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default 0x0800 2048 4 interface 0 [31:16] 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 interface 0 [15:0] if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 0x0801 2049 4 interface 0 [31:16] 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 interface 0 [15:0] if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 0x0802 2050 4 interface 0 [31:16] 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 interface 0 [15:0] if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 0x0803 2051 4 interface 0 [31:16] 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 interface 0 [15:0] if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 0x0804 2052 4 interface 0 [31:16] 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 interface 0 [15:0] if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 0x0805 2053 4 interface 0 [31:16] 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 interface 0 [15:0] if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 0x0806 2054 4 interface 0 [31:16] 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 interface 0 [15:0] if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 0x0807 2055 4 interface 0 [31:16] 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 interface 0 [15:0] if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 0x0808 2056 2 gpio pin setting 0 0 0 0 mp11 mp10 mp 09 mp08 mp07 mp06 mp05 mp04 mp03 mp02 mp01 mp00 0x0000 0x0809 2057 2 auxiliary adc data 0 0 0 0 0 aa11 aa10 aa09 aa08 aa07 aa06 aa05 aa04 aa03 aa02 aa01 aa00 0x0000 0x080a 2058 2 auxiliary adc data 1 0 0 0 0 aa11 aa10 aa09 aa08 aa07 aa06 aa05 aa04 aa03 aa02 aa01 aa00 0x0000 0x080b 2059 2 auxiliary adc data 2 0 0 0 0 aa11 aa10 aa09 aa08 aa07 aa06 aa05 aa04 aa03 aa02 aa01 aa00 0x0000 0x080c 2060 2 auxiliary adc data 3 0 0 0 0 aa11 aa10 aa09 aa08 aa07 aa06 aa05 aa04 aa03 aa02 aa01 aa00 0x0000 0x080d 2061 5 reserved [39:32] rsvd rsvd rsvd rsvd rs vd rsvd rsvd rsvd 0x00 reserved [31:16] rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd 0x0000 reserved [15:0] rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd 0x0000 0x080e 2062 5 reserved [39:32] rsvd rsvd rsvd rsvd rs vd rsvd rsvd rsvd 0x00 reserved [31:16] rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd 0x0000 reserved [15:0] rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd 0x0000 0x080f 2063 5 reserved [39:32] rsvd rsvd rsvd rsvd rs vd rsvd rsvd rsvd 0x00 reserved [31:16] rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd 0x0000 reserved [15:0] rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd 0x0000 0x0810 2064 5 safeload data 0 [39:32] sd39 sd38 sd37 sd36 sd35 sd34 sd33 sd32 0x00 safeload data 0 [31:16] sd31 sd30 sd29 sd28 sd27 sd26 sd25 sd24 sd23 sd22 sd21 sd20 sd19 sd18 sd17 sd16 0x0000 safeload data 0 [15:0] sd15 sd14 sd13 sd12 sd11 sd10 sd09 sd08 sd07 sd06 sd05 sd04 sd03 sd02 sd01 sd00 0x0000 0x0811 2065 5 safeload data 1 [39:32] sd39 sd38 sd37 sd36 sd35 sd34 sd33 sd32 0x00 safeload data 1 [31:16] sd31 sd30 sd29 sd28 sd27 sd26 sd25 sd24 sd23 sd22 sd21 sd20 sd19 sd18 sd17 sd16 0x0000 safeload data 1 [15:0] sd15 sd14 sd13 sd12 sd11 sd10 sd09 sd08 sd07 sd06 sd05 sd04 sd03 sd02 sd01 sd00 0x0000 0x0812 2066 5 safeload data 2 [39:32] sd39 sd38 sd37 sd36 sd35 sd34 sd33 sd32 0x00 safeload data 2 [31:16] sd31 sd30 sd29 sd28 sd27 sd26 sd25 sd24 sd23 sd22 sd21 sd20 sd19 sd18 sd17 sd16 0x0000 safeload data 2 [15:0] sd15 sd14 sd13 sd12 sd11 sd10 sd09 sd08 sd07 sd06 sd05 sd04 sd03 sd02 sd01 sd00 0x0000 0x0813 2067 5 safeload data 3 [39:32] sd39 sd38 sd37 sd36 sd35 sd34 sd33 sd32 0x00 safeload data 3 [31:16] sd31 sd30 sd29 sd28 sd27 sd26 sd25 sd24 sd23 sd22 sd21 sd20 sd19 sd18 sd17 sd16 0x0000 safeload data 3 [15:0] sd15 sd14 sd13 sd12 sd11 sd10 sd09 sd08 sd07 sd06 sd05 sd04 sd03 sd02 sd01 sd00 0x0000 0x0814 2068 5 safeload data 4 [39:32] sd39 sd38 sd37 sd36 sd35 sd34 sd33 sd32 0x00 safeload data 4 [31:16] sd31 sd30 sd29 sd28 sd27 sd26 sd25 sd24 sd23 sd22 sd21 sd20 sd19 sd18 sd17 sd16 0x0000 safeload data 4 [15:0] sd15 sd14 sd13 sd12 sd11 sd10 sd09 sd08 sd07 sd06 sd05 sd04 sd03 sd02 sd01 sd00 0x0000 0x0815 2069 2 safeload address 0 0 0 0 0 sa11 sa10 sa09 sa08 sa07 sa06 sa05 sa 04 sa03 sa02 sa01 sa00 0x0000 0x0816 2070 2 safeload address 1 0 0 0 0 sa11 sa10 sa09 sa08 sa07 sa06 sa05 sa 04 sa03 sa02 sa01 sa00 0x0000 0x0817 2071 2 safeload address 2 0 0 0 0 sa11 sa10 sa09 sa08 sa07 sa06 sa05 sa 04 sa03 sa02 sa01 sa00 0x0000 0x0818 2072 2 safeload address 3 0 0 0 0 sa11 sa10 sa09 sa08 sa07 sa06 sa05 sa 04 sa03 sa02 sa01 sa00 0x0000 0x0819 2073 2 safeload address 4 0 0 0 0 sa11 sa10 sa09 sa08 sa07 sa06 sa05 sa 04 sa03 sa02 sa01 sa00 0x0000
ADAU1401 rev. 0 | page 32 of 52 msb lsb d39 d38 d37 d36 d35 d34 d33 d32 d31 d30 d29 d28 d27 d 26 d25 d24 d23 d22 d21 d20 d19 d18 d17 d16 reg (hex) reg (dec) no. o f bytes name d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default 0x081a 2074 2 data capture 0 0 0 0 0 pc09 pc08 pc 07 pc06 pc05 pc04 pc03 pc02 pc01 pc00 rs01 rs00 0x0000 0x081b 2075 2 data capture 1 0 0 0 0 pc09 pc08 pc 07 pc06 pc05 pc04 pc03 pc02 pc01 pc00 rs01 rs00 0x0000 0x081c 2076 2 dsp core control rsvd rsvd gd1 gd0 rsvd rsvd rsvd aacw gpcw ifcw ist adm dam cr sr1 sr0 0x0000 0x081d 2077 1 reserved rsvd rsvd rsvd rsvd rs vd rsvd rsvd rsvd 0x00 0x081e 2078 2 serial output control 0 0 olrp obp m/s obf1 obf0 olf1 olf0 fst tdm msb2 msb1 msb0 owl1 owl0 0x0000 0x081f 2079 1 serial input control 0 0 0 ilp ibp m2 m1 m0 0x00 0x0820 2080 3 mp pin config. 0 [23:16] mp53 mp52 mp51 mp50 mp43 mp42 mp41 mp40 0x00 mp pin config. 0 [15:0] mp33 mp32 mp31 mp30 mp 23 mp22 mp21 mp20 mp13 mp12 mp11 mp10 mp03 mp02 mp01 mp00 0x0000 0x0821 2081 3 mp pin config. 1 [23:16] mp113 mp112 mp111 mp110 mp103 mp102 mp101 mp100 0x00 mp pin config. 1 [15:0] mp93 mp92 mp91 mp90 mp 83 mp82 mp81 mp80 mp73 mp72 mp71 mp70 mp63 mp62 mp61 mp60 0x0000 0x0822 2082 2 auxiliary adc and power control rsvd rsvd rsvd rsvd rsvd rsvd fil1 fil0 aapd vbpd vrpd rsvd d0pd d1pd d2pd d3pd 0x0000 0x0823 2083 2 reserved rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rs vd rsvd rsvd rsvd rsvd rsvd 0x0000 0x0824 2084 2 auxiliary adc enable aaen rsvd rs vd rsvd rsvd rsvd rsvd rs vd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd 0x0000 0x0825 2085 2 reserved rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rs vd rsvd rsvd rsvd rsvd rsvd 0x0000 0x0826 2086 2 oscillator power-down rsvd rsvd rs vd rsvd rsvd rsvd rsvd rsvd rsvd rs vd rsvd rsvd rsvd opd rsvd rsvd 0x0000 0x0827 2087 2 dac setup rsvd rsvd rsvd rs vd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd ds1 ds0 0x0000 1 shading indicates that registers do not fill these locations, so control bits do not exist in these locations.
ADAU1401 rev. 0 | page 33 of 52 control register details 2048 to 2055 (0x0800 to 0x0807) interface registers the interface registers are used in self-boot mode to save parameters that need to be written to the external eeprom. the ADAU1401 then recalls these parameters from the eeprom after the next reset or power-up. therefore, system parameters such as volume and eq settings can be saved during power-down and recalled the next time the system is turned on. there are eight 32-bit interface registers, which allow eight 28-bit (plus zero-padding) parameters to be saved. the parameters to be saved in these registers are selected in the graphical programming tools. these registers are updated with their corresponding parameter ram data once per sample period. an edge, which can be set to be either rising or falling, triggers the ADAU1401 to write the current contents of the interface registers to the eeprom. see the self-boot section for details. the user can write directly to the interface registers after the interface registers control port write mode (ifcw) in the dsp core control register has been set. in this mode, the data in the registers is written from the control port, not from the dsp core. table 34. d31 d30 d29 d28 d27 d26 d25 d24 d23 d22 d21 d20 d19 d18 d17 d16 d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default 0 0 0 0 if27 if26 if25 if24 if23 if22 if21 if20 if19 if18 if17 if16 0x0000 if15 if14 if13 if12 if11 if10 if09 if08 if07 if06 if05 if04 if03 if02 if01 if00 0x0000 table 35. bit name description if [27:0] interface register 28-bit parameter
ADAU1401 rev. 0 | page 34 of 52 2056 (0x808)gpio pin setting register this register allows the user to set the gpio pins through the control port. high or low settings can be directly written to or read from this register after setting the gpio pin setting register control port write mode (gpcw) in the core control register. this reg ister is updated once every lrclk frame (1/f s ). table 36. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default 0 0 0 0 mp11 mp10 mp09 mp08 mp07 mp06 mp05 mp04 mp03 mp02 mp01 mp00 0x0000 table 37. bit name description mp [11:0] setting of multipurpose pi n when controlled through spi or i 2 c
ADAU1401 rev. 0 | page 35 of 52 2057 to 2060 (0x809 to 0x80c)auxiliary adc data registers these registers hold the data generated by the 4-channel auxiliary adc. the adcs have eight bits of precision and can be extended to 12 bits if filtering is selected via bits fil [1:0] of the auxiliary adc and power control register. the sigmadsp program reads this data as a 1.11 format data-word with a range of 0 to 1.0. this data-word is mapped to the 5.23 format parameter word with the four msbs and 12 lsbs set to 0. a full-scale code of 255 results in a value of 1.0. these registers can be written to directly if the auxiliary adc data registers control port write mode (aacw) bit is set in the dsp core control register. table 38. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default 0 0 0 0 aa11 aa10 aa09 aa08 aa07 aa06 aa05 aa04 aa03 aa02 aa01 aa00 0x0000 table 39. bit name description aa [11:0] auxiliary adc output data, msb first
ADAU1401 rev. 0 | page 36 of 52 2064 to 2068 (0x0810 to 0x814)safeload data registers many applications require real-time microcontroller control of signal processing parameters, such as filter coefficients, mixer gains, multichannel virtualizing parameters, or dynamics processing curves. when controlling a biquad filter, for example, all of the parameters must be updated at the same time. doing so prevents the filter from executing with a mix of old and new coefficients for one or two audio frames, thus avoiding temporary instability and transients that may take a long time to decay. to accomplish this, the ADAU1401 uses safeload data registers to simultaneously load a set of five 28-bit values to the desired parameter ram address. five registers are used because a biquad filter uses five coefficients and, as previously mentioned, it is desirable to do a complete update in one transaction. the first step in performing a safeload operation is writing the parameter address to one of the safeload address registers (2069 to 2073). the 10-bit data-word to be written is the address in parameter ram to which the safeload is being performed. after this address is written, the 28-bit data-word can be written to the corresponding safeload data register (2064 to 2068). the data formats for these writes are detailed in table 31 and table 32 . table 40 shows how each of the five address registers maps to its corresponding data register. after the address and data registers are loaded, set the initiate safeload transfer bit in the core control register to initiate the loading into ram. each of the five safeload registers takes one of the 1024 core instructions to load into the parameter ram. the total program lengths should, therefore, be limited to 1019 cycles (1024 minus 5) to ensure that the sigmadsp core always has at least five cycles available. the safeload is guaranteed to occur within one lrclk period (21 s for a f s of 48 khz) of the initiate safeload transfer bit being set. the safeload logic automatically sends data to be loaded into ram from only those safeload registers that have been written to since the last safeload operation. for example, if two parameters are to be updated in the ram, only two of the five safeload registers must be written. when the initiate safeload transfer bit is asserted, only data from those two registers are sent to the ram; the other three registers are not sent to the ram and may hold old or invalid data. table 40. safeload address and data register mapping safeload register safeload address register safeload data register 0 2069 2064 1 2070 2065 2 2071 2066 3 2072 2067 4 2073 2068 table 41. d39 d38 d37 d36 d35 d34 d33 d32 d31 d30 d29 d28 d27 d26 d25 d24 d23 d22 d21 d20 d19 d18 d17 d16 d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default sd39 sd38 sd37 sd36 sd35 sd34 sd33 sd32 0x00 sd31 sd30 sd29 sd28 sd27 sd26 sd25 sd24 sd23 sd22 sd21 sd20 sd19 sd18 sd17 sd16 0x0000 sd15 sd14 sd13 sd12 sd11 sd10 sd09 sd08 sd07 sd06 sd05 sd04 sd03 sd02 sd01 sd00 0x0000 table 42. bit name description sd [39:0] safeload data data (program, parameters, register contents) to be loaded into the rams or registers 2069 to 2073 (0x0815 to 0x819)safeload address registers table 43. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default 0 0 0 0 sa11 sa10 sa09 sa08 sa07 sa06 sa05 sa04 sa03 sa02 sa01 sa00 0x0000 table 44. bit name description sa [11:0] safeload address address of data that is to be loaded into the rams or registers
ADAU1401 rev. 0 | page 37 of 52 2074 to 2075 (0x081a to 0x081b)data capture registers the ADAU1401 data capture feature allows the data at any node in the signal processing flow to be sent to one of two readable registers. this feature is useful for monitoring and displaying information about internal signal levels or compressor/limiter activity. for each of the data capture registers, a capture count and a register select must be set. the capture count is a number between 0 and 1023 that corresponds to the program step number where the capture is to occur. the register select field programs one of four registers in the dsp core that transfers this information to the data capture register when the program counter reaches this step. the captured data is in 5.19, twos complement data format, which comes from the internal 5.23 data-word with the four lsbs truncated. the data that must be written to set up the data capture is a concatenation of the 10-bit program count index with the 2-bit register select field. the capture count and register select values that correspond to the desired point to be monitored in the signal processing flow can be found in a file output from the program compiler. the capture registers can be accessed by reading from location 2074 and location 2075. the format for writing and reading to the data capture registers is shown in table 29 and table 30 . table 45. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default 0 0 0 0 pc09 pc08 pc07 pc06 pc05 pc04 pc03 pc02 pc01 pc00 rs01 rs00 0x0000 table 46. bit name description pc [9:0] 10-bit program counter address rs [1:0] select the register to be transferred to the data capture output rs [1:0] register 00 multiplier x input (mult_x_input) 01 multiplier y input (mult_y_input) 10 multiplier-accumulator output (mac_out) 11 accumulator feedback (accum_fback)
ADAU1401 rev. 0 | page 38 of 52 2076 (0x081c)dsp core control register table 47. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default rsvd rsvd gd1 gd0 rsvd rsvd rsvd aacw gpcw ifcw ist adm dam cr sr1 sr0 0x0000 table 48. dsp core control register bit name description sets debounce time of multipurpose pi ns that are set as gpio inputs. gd [1:0] time (ms) 00 20 01 40 10 10 gd [1:0] gpio debounce control 11 5 aacw auxiliary adc data registers control port write mode setting this bit allows data to be written directly to the auxiliary adc data registers (2057 to 2060) from the control port. when this bit is set, the auxiliary adc data registers ignore the settings on the multipurpose pins. gpcw gpio pin setting register control port write mode when this bit is set, the gpio pin setting register (2056) can be written to directly from the control port and this register ignores the input settings on the multipurpose pins. ifcw interface registers control port write mode when this bit is set, data can be written directly to the interface registers (2048 to 2055) from the control port. in that state, the interface registers are not written from the sigmadsp program. ist initiate safeload transfer setting this bit to 1 initiates a safeload transfer to th e parameter ram. this bit is automatically cleared when the operation is complete. there are five safeload register pairs (address/data); only those registers that have been written since the last safeload event are transferred to the parameter ram. adm mute adcs this bit mutes the output of the adcs. the bit defaults to 0 and is active low; therefore, it must be set to 1 to transmit audio signals from the adcs. dam mute dacs this bit mutes the output of the dacs. the bit defaults to 0 and is active low; therefore, it must be set to 1 to transmit audio signals from the dacs. cr clear internal registers to 0 this bit defaults to 0 and is active low. it must be set to 1 for a signal to pass through the sigmadsp core. sr [1:0] sample rate these bits set the number of dsp instructions for ev ery sample and the sample rate at which the ADAU1401 operates. at the default setting of 1, there are 1024 in structions per audio sample. this setting should be used with sample rates such as 48 khz and 44.1 khz. at the 2 setting, the number of instructions per fram e is halved to 512 and the adcs and dacs nominally run at a 96 khz sample rate. at the 4 setting, there are 256 instructions per cycle and the converters run at a 192 khz sample rate. sr [1:0] setting 00 1 (1024 instructions) 01 2 (512 instructions) 10 4 (256 instructions) 11 reserved
ADAU1401 rev. 0 | page 39 of 52 2078 (0x081e)serial outp ut control register table 49. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default 0 0 olrp obp m/s obf1 obf0 olf1 olf0 fst tdm msb2 msb1 msb0 owl1 owl0 0x0000 table 50. bit name description olrp output_lrclk polarity when this bit is set to 0, the left-channel data is clocked when output_lrclk is low and the right-channel data is clocked when output_lrclk is high. when this bit is set to 1, th e right-channel data is clocked when output_lrclk is low and the left-channel data is clocked when output_lrclk is high. obp output_bclk polarity this bit controls on which edge of the bit clock the o utput data is clocked. data changes on the falling edge of output_bclk when this bit is set to 0 and on the rising edge when this bit is set to 1. m/s master/slave this bit sets whether the output port is a clock master or slave. the default setting is slave; on power-up, the output_bclk and output_lrclk pins are set as inputs until this bit is set to 1, at which time they become clock outputs. when the output port is being used as a clock master, these bits set the frequency of the output bit clock, which is divided down from an internal 1024 f s clock (49.152 mhz for a f s of 48 khz). obf [1:0] setting 00 internal clock/16 01 internal clock/8 10 internal clock/4 obf [1:0] output_bclk frequency (master mode only) 11 internal clock/2 when the output port is used as a clock master, these bi ts set the frequency of th e output word clock on the output_lrclk pins, which is divided down from an internal 1024 f s clock (49.152 mhz for a f s of 48 khz). olf [1:0] setting 00 internal clock/1024 01 internal clock/512 10 internal clock/256 olf [1:0] output_lrclk frequency (master mode only) 11 reserved fst frame sync type this bit sets the type of signal on the output_lrclk pins . when this bit is set to 0, the signal is a word clock with a 50% duty cycle; when this bit is set to 1, the si gnal is a pulse with a duration of one bit clock at the beginning of the data frame. tdm tdm enable setting this bit to 1 changes the output port from four se rial stereo outputs to a si ngle 8-channel tdm output stream on the sdata_out0 pin (mp6). these three bits set the position of the msb of data wi th respect to the lrclk edge. the data output of the ADAU1401 is always msb first. msb [2:0] setting 000 delay by 1 001 delay by 0 010 delay by 8 011 delay by 12 100 delay by 16 101 reserved msb [2:0] msb position 111 reserved these bits set the word length of the output data -word. all bits following the lsb are set to 0. owl [1:0] setting 00 24 bits 01 20 bits 10 16 bits owl [1:0] output word length 11 reserved
ADAU1401 rev. 0 | page 40 of 52 2079 (0x081f)serial input control register table 51. d7 d6 d5 d4 d3 d2 d1 d0 default 0 0 0 ilp ibp m2 m1 m0 0x00 table 52. bit name description ilp input_lrclk polarity when this bit is set to 0, the left-channel data on th e sdata_inx pins is clocked when input_lrclk is low and the right-channel data is clocked when input_lrclk is high. when this bit is set to 1, the clocking of these channels is reversed. in tdm mode when this bit is set to 0, data is clocked in, starting with the next appropriate bclk edge (set in bit 3 of this register) after a falling ed ge on the input_lrclk pin. when this bit is set to 1 and the device is running in tdm mode, the input data is va lid on the bclk edge after a rising edge on the word clock (input_lrclk). input_lrclk can also operate with a pu lse input, rather than a cloc k. in this case, the first edge of the pulse is used by the adau 1401 to start the data frame. when this polarity bit is set to 0, a low pulse should be used; when the bit it set to 1, a high pulse should be used. ibp input_bclk polarity this bit controls on which edge of the bit clock the inp ut data changes and on which edge it is clocked. data changes on the falling edge of input_bclk when this bit is se t to 0 and on the rising edge when this bit is set at 1. these two bits control the data format that the input por t expects to receive. bit 3 and bit 4 of this control register override the settings of bits [2:0]; therefore, all four bits must be changed together for proper operation in some modes. the clock diagrams for these modes are shown in figure 31 , figure 32 , and figure 33 . note that for left-justified and right-justified modes, the lrclk polar ity is high and then low, which is the opposite of the default setting for ilp. when these bits are set to accept a tdm input, the ad au1401 data starts after the edge defined by ilp. the ADAU1401 tdm data stream should be input on pin sdata_in0. figure 34 shows a tdm stream with a high-to- low triggered lrclk and data changing on the falling edge of the bclk. the ADAU1401 expects the msb of each data slot to be delayed by one bclk from th e beginning of the slot, as it would in stereo i 2 s format. in tdm mode, channel 0 to channel 3 are in the first half of th e frame, and channel 4 to channel 7 are in the second half. figure 35 shows an example of a tdm stream running with a pulse word clock, which is used to interface to adi codecs in auxiliary mode. to wo rk in this mode with either the input or output serial ports, set the ADAU1401 to begin the frame on the rising edge of lrclk, to change data on the falling edge of bclk, and to delay the msb position from the start of the word clock by one bclk. m [2:0] setting 000 i 2 s 001 left-justified 010 tdm 011 right-justified, 24 bits 100 right-justified, 20 bits 101 right-justified, 18 bits 110 right- justified, 16 bits m [2:0] serial input mode 111 reserved
ADAU1401 rev. 0 | page 41 of 52 2080 to 2081 (0x0820 to 0x0821)multipurp ose pin configuration registers each multipurpose pin can be set to different functions from these registers (2080 to 2081). the two 3-byte registers are broken up into 12 4-bit (nibble) sections that each control a different mp pin. table 55 lists the function of each nibble setting within the mp pin configuration registers. the msb of each pins 4-bit configuration inverts the input to or output from the pin. the internal pull-up resistor (approximately 10 k) of each mp pin is enabled when it is set as a digital input (either a gpio input or a serial data port input). table 53. register 2080 d23 d22 d21 d20 d19 d18 d17 d16 d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default mp53 mp52 mp 51 mp50 mp43 mp42 mp41 mp40 0x00 mp33 mp32 mp31 mp30 mp23 mp22 mp21 mp20 mp 13 mp12 mp11 mp10 mp03 mp02 mp01 mp00 0x0000 table 54. register 2081 d23 d22 d21 d20 d19 d18 d17 d16 d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default mp113 mp112 mp 111 mp110 mp103 mp102 mp101 mp100 0x00 mp93 mp92 mp91 mp90 mp83 mp82 mp81 mp80 mp 73 mp72 mp71 mp70 mp63 mp62 mp61 mp60 0x0000 table 55. bit name description mpx [3:0] set the function of each multipurpose pin mpx [3:0] setting 1111 auxiliary adc input (see table 64 ) 1110 reserved 1101 reserved 1100 serial data portinverted (see table 66 ) 1011 open-collector outputinverted 1010 gpio outputinverted 1001 gpio input, no debounceinverted 1000 gpio input, debouncedinverted 0111 n/a 0110 reserved 0101 reserved 0100 serial data port (see table 66 ) 0011 open-collector output 0010 gpio output 0001 gpio input, no debounce 0000 gpio input, debounced
ADAU1401 rev. 0 | page 42 of 52 2082 (0x0822)auxiliary adc and power control table 56. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default rsvd rsvd rsvd rsvd rsvd rsvd fil1 fil0 aapd vbpd vrpd rsvd d0pd d1pd d2pd d3pd 0x0000 table 57. bit name description auxiliary adc filtering fil [1:0] setting 00 4-bit hysteresis (12-bit level) 01 5-bit hysteresis (12-bit level) 10 filter and hysteresis bypassed fil [1:0] 11 low-pass filter bypassed aapd adc power-down (both adcs) vbpd voltage reference buffer power-down vrpd voltage reference power-down d0pd dac0 power-down d1pd dac1 power-down d2pd dac2 power-down d3pd dac3 power-down 2084 (0x0824)auxiliary adc enable table 58. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default aaen rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd 0x0000 table 59. bit name description aaen enable the auxiliary adc 2086 (0x0826)oscillator power-down table 60. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd opd rsvd rsvd 0x0000 table 61. bit name description opd power down the oscillator
ADAU1401 rev. 0 | page 43 of 52 2087 (0x0827)dac setup to properly initialize the dacs, bits ds [1:0] in this register should be set to 01. table 62. d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 default rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd rsvd ds1 ds0 0x0000 table 63. bit name description dac setup ds [1:0] setting 00 reserved 01 initialize dacs 10 reserved ds [1:0] 11 reserved
ADAU1401 rev. 0 | page 44 of 52 multipurpose pins the ADAU1401 has 12 multipurpose (mp) pins that can be individually programmed to be used as serial data inputs, serial data outputs, digital control inputs/outputs to and from the sigmadsp core, or inputs to the 4-channel auxiliary adc. these pins allow the ADAU1401 to be used with external adcs and dacs. they also use analog or digital inputs to control settings such as volume control, or use output digital signals to drive led indicators. table 64. multipurpose pin auxiliary adc mapping multipurpose pin function mp0 n/a mp1 n/a mp2 adc1 mp3 adc2 mp4 n/a mp5 n/a mp6 n/a auxiliary adc mp7 n/a the ADAU1401 has a 4-channel, auxiliary, 8-bit adc that can be used in conjunction with a potentiometer to control volume, tone, or other parameter settings in the dsp program. each of the four channels is sampled at the audio sampling frequency (f s ). full-scale input on this adc is 3.0 v, so the step size is approxi- mately 11 mv (3.0 v/256 steps). the input resistance of the adc is approximately 30 k. mp8 adc3 mp9 adc0 mp10 n/a mp11 n/a general-purpose input/output pins table 64 indicates which four mp pins are mapped to the four channels of the auxiliary adc. the auxiliary adc is enabled for those pins by writing 1111 to the appropriate portion of the multipurpose pin configuration registers. the general-purpose input/output (gpio) pins can be used as either inputs or outputs. these pins are readable and can be set either through the control interface or directly by the sigmadsp core. when set as inputs, these pins can be used with push-button switches or rotary encoders to control dsp program settings. digital outputs can be used to drive leds or external logic to indicate the status of internal signals and control other devices. examples of this use include indicating signal overload, signal present, and button press confirmation. the auxiliary adc is turned on by setting the aaen bit of the auxiliary adc enable register (see tabl e 59 ). noise on the adc input can cause the digital output to constantly change by a few lsbs. if the auxiliary adc is used to control volume, this constant change causes small gain fluctuations. to avoid this, add a low-pass filter or hysteresis to the auxiliary adc signal path by enabling either function in the auxiliary adc and power control register (2082), as described in when set as an output, each pin can typically drive 2 ma. this is enough current to directly drive some high efficiency leds. standard leds require about 20 ma of current and can be driven from a gpio output with an external transistor or buffer. because of issues that could arise from simultaneously driving or sinking a large current on many pins, care should be taken in the application design to avoid connecting high efficiency leds directly to many or all of the mpx pins. if many leds are required, use an external driver. table 57 . the filter is enabled by default when the auxiliary adc is enabled. when data is read from the auxiliary adc registers, two bytes (12 bits of data, plus zero-padded lsbs) are available because of this filtering. 20k ? 10k ? s1 s2 1.8pf aux adc input pin 06752-030 when the gpio pins are set as open-collector outputs, they should be pulled up to a maximum voltage of 3.3 v (the voltage on iovdd). serial data input/output ports figure 30. auxiliary adc input circuit the flexible serial data input and output ports of the ADAU1401 can be set to accept or transmit data in 2-channel format or in an 8-channel tdm stream. data is processed in twos complement, msb-first format. the left-channel data field always precedes the right-channel data field in the 2-channel streams. in tdm mode, slot 0 to slot 3 are in the first half of the audio frame, and slot 4 to slot 7 are in the second half of the frame. tdm mode allows fewer multipurpose pins to be used, freeing more pins for other functions. the serial modes are set in the serial output and serial input control registers. figure 30 shows the input circuit for the auxiliary adc. switch s1 enables the auxiliary adc and is set by bit 15 of the auxiliary adc enable register. the sampling switch, s2, operates at the audio sampling frequency. the auxiliary adc data registers can be written to directly after aacw in the dsp core control register has been set. in this mode, the voltages on the analog inputs are not written into the registers, but rather the data in the registers is written from the control port. pvdd supplies the 3.3 v power for the auxiliary adc analog input. the digital core of the auxiliary adc is powered with the 1.8 v dvdd signal. the serial data clocks need to be synchronous with the ADAU1401 master clock input.
ADAU1401 rev. 0 | page 45 of 52 the input control register allows control of clock polarity and data input modes. the valid data formats are i 2 s, left-justified, right-justified (24-/20-/18-/16-bit), and 8-channel tdm. in all modes except for the right-justified modes, the serial port accepts an arbitrary number of bits up to a limit of 24. extra bits do not cause an error, but they are truncated internally. proper operation of the right-justified modes requires that there be exactly 64 bclks per audio frame. the tdm data is input on sdata_in0. the lrclk in tdm mode can be input to the ADAU1401 either as a 50/50 duty cycle clock or as a bit-wide pulse. in tdm mode, the ADAU1401 can be a master for 48 khz and 96 khz data, but not for 192 khz data. table 65 lists the modes in which the serial output port can function. table 65. serial output port ma ster/slave mode capabilities f s 2-channel modes (i 2 s, left-justified, right-justified) 8-channel tdm 48 khz master and slave master and slave 96 khz master and slave master and slave 192 khz master and slave slave only the output control registers allow the user to control clock polarities, clock frequencies, clock types, and data format. in all modes except for the right-justified modes (msb delayed by 8, 12, or 16 bits), the serial port accepts an arbitrary number of bits up to a limit of 24. extra bits do not cause an error, but are truncated internally. proper operation of the right-justified modes requires the lsb to align with the edge of the lrclk. the default settings of all serial port control registers correspond to 2-channel i 2 s mode. all register settings apply to both master and slave modes unless otherwise noted. the function of each multipurpose pin in serial data port mode is shown in tabl e 66 . pin mp0 to pin mp5 support digital data input to the ADAU1401, and pin mp6 to pin mp11 handle digital data output from the dsp. the configuration of the serial data input port is set in the serial input control register ( table 52 ), and the configuration of the corresponding output port is controlled with the serial output control register ( table 50 ). the clocks of the input port function only as slaves, whereas the output port clocks can be set to function as either masters or slaves. the input_lrclk (mp4) and input_bclk (mp5) pins are used to clock the sdata_inx (mp0 to mp3) signals, and the output_lrclk (mp10) and output_bclk (mp11) pins are used to clock the sdata_outx (mp6 to mp9) signals. if an external adc is connected as a slave to the ADAU1401, use both the input and output port clocks. the output_lrclk (mp10) and output_bclk (mp11) pins must be set to master mode and connected externally to the input_lrclk (mp4) and input_bclk (mp5) pins as well as to the external adc clock input pins. the data is output from the external adc into the sigmadsp on one of the four sdata_inx pins (mp0 to mp3). connections to an external dac are handled exclusively with the output port pins. the output_lrclk and output_bclk pins can be set to function as either masters or slaves, and the sdata_outx pins are used to output data from the sigmadsp to the external dac. table 67 describes the proper configurations for standard audio data formats. table 66. multipurpose pin serial data port functions multipurpose pin function mp0 sdata_in0/tdm_in mp1 sdata_in1 mp2 sdata_in2 mp3 sdata_in3 mp4 input_lrclk (slave only) mp5 input_bclk (slave only) mp6 sdata_out0/tdm_out mp7 sdata_out1 mp8 sdata_out2 mp9 sdata_out3 mp10 output_lrclk (master or slave) mp11 output_bclk (master or slave) table 67. data format configurations format lrclk polarity lrclk type bclk polarity msb position i 2 s ( figure 31 ) frame begins on falling edge clock data changes on falling edge delayed from lrclk edge by 1 bclk left-justified ( figure 32 ) frame begins on rising edge clock data ch anges on falling edge aligned with lrclk edge right-justified ( figure 33 ) frame begins on rising edge clock data changes on falling edge delayed from lrclk edge by 8, 12, or 16 bclks tdm with clock ( figure 34 ) frame begins on falling edge clock data changes on falling edge delayed from start of word clock by 1 bclk tdm with pulse ( figure 35 ) frame begins on rising edge pulse data changes on falling edge delayed from start of word clock by 1 bclk
ADAU1401 rev. 0 | page 46 of 52 lrcl k bclk sdata msb left channel lsb msb right channel lsb 1/f s 06752-031 figure 31. i 2 s mode16 bits to 24 bits per channel lrclk bclk sdata left channel msb lsb msb right channel lsb 1/f s 0 6752-032 figure 32. left-justified mode16 bits to 24 bits per channel lrclk bclk sdata left channel msb lsb msb right channel lsb 1/f s 06752-033 figure 33. right-justified mode16 bits to 24 bits per channel lrclk bclk data slot 1 slot 4 slot 5 32 bclks msb msb?1 msb?2 256 bclks slot 2 slot 3 slot 6 slot 7 slot 8 lrclk bclk data 06752-034 figure 34. tdm mode lrcl k slot 0 slot 1 slot 2 slot 3 slot 4 slot 5 slot 6 slot 7 ch 0 bclk sdata msb tdm 8th ch 32 bclks msb tdm 06752-035 figure 35. tdm mode with pulse word clock
ADAU1401 rev. 0 | page 47 of 52 layout recommendations parts placement the adc input voltage-to-current resistors and the adc current set resistor should be placed as close as possible to the 2, 3, and 4 input pins. all 100 nf bypass capacitors, which are recommended for every analog, digital, and pll power/ground pair, should be placed as close as possible to the ADAU1401. the 3.3 v and 1.8 v signals on the board should also each be bypassed with a single bulk capacitor (10 f to 47 f). all traces in the crystal oscillator circuit ( figure 14 ) should be kept as short as possible to minimize stray capacitance. in addition, avoid long board traces connected to any of these components because such traces may affect crystal startup and operation. grounding a single ground plane should be used in the application layout. components in an analog signal path should be placed away from digital signals.
ADAU1401 rev. 0 | page 48 of 52 typical application schematics self-boot mode 06752-036 u1 adau 1401 figure 36. self-boo t mode schematic
ADAU1401 rev. 0 | page 49 of 52 i 2 c control 06752-037 u1 ADAU1401 figure 37. i 2 c control schematic
ADAU1401 rev. 0 | page 50 of 52 spi control 06752-038 u1 ADAU1401 figure 38. spi control schematic
ADAU1401 rev. 0 | page 51 of 52 outline dimensions compliant to jedec standards ms-026-bbc top view (pins down) 1 12 13 25 24 36 37 48 0.27 0.22 0.17 0.50 bsc lead pitch 1.60 max 0.75 0.60 0.45 view a pin 1 0.20 0.09 1.45 1.40 1.35 0.08 coplanarity view a rotated 90 ccw seating plane 7 3.5 0 0.15 0.05 9.20 9.00 sq 8.80 7.20 7.00 sq 6.80 051706-a figure 39. 48-lead low-profile quad flat package [lqfp] (st-48) dimensions shown in millimeters ordering guide model temperature range package description package option ADAU1401ystz ?40c to +105c 48-lead lqfp st-48 1 ADAU1401ystz-rl ?40c to +105c 48-lead lqfp in 13 reel st-48 1 eval-ADAU1401eb evaluation board 1 z = rohs compliant part.
ADAU1401 rev. 0 | page 52 of 52 notes ?2007 analog devices, inc. all rights reserved. trademarks and registered trademarks are the property of their respective owners. d06752-0-7/07(0)


▲Up To Search▲   

 
Price & Availability of ADAU1401

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X